summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2011-10-05 11:54:15 +0000
committerMichael Drake <tlsa@netsurf-browser.org>2011-10-05 11:54:15 +0000
commit291307d64e5d3b876ce2535d81ceb6eeb3ba8278 (patch)
tree912a71f5a9ffd1694a77f1968d809ae633666433
parent0c30fe98af6c88124cbe234131fae86671f19092 (diff)
downloadnetsurf-291307d64e5d3b876ce2535d81ceb6eeb3ba8278.tar.gz
netsurf-291307d64e5d3b876ce2535d81ceb6eeb3ba8278.tar.bz2
Terminate raw resource URL string.
svn path=/trunk/netsurf/; revision=12954
-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);