diff options
-rw-r--r-- | riscos/gui.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/riscos/gui.c b/riscos/gui.c index 7bae4cc36..cb3a9504a 100644 --- a/riscos/gui.c +++ b/riscos/gui.c @@ -288,6 +288,9 @@ char* gui_find_resource(const char *filename) SLEN("file:///NetSurf:/Resources/") + 1; char *resource_url = malloc(length); + if (resource_url == NULL) + return NULL; + resource_url = strcpy(resource_url, "file:///NetSurf:/Resources/"); return strcat(resource_url, filename); } |