summaryrefslogtreecommitdiff
path: root/riscos
diff options
context:
space:
mode:
Diffstat (limited to 'riscos')
-rw-r--r--riscos/gui.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/riscos/gui.c b/riscos/gui.c
index 9a6494c3e..4c8f3154b 100644
--- a/riscos/gui.c
+++ b/riscos/gui.c
@@ -319,6 +319,10 @@ nsurl *gui_get_resource_url(const char *path)
/* Add filename to URL */
memcpy(ptr, path, path_len);
+ ptr += path_len;
+
+ /* Terminate string */
+ *ptr = '\0';
nsurl_create(raw, &url);
free(raw);