diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2011-10-05 11:54:15 +0000 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2011-10-05 11:54:15 +0000 |
commit | 291307d64e5d3b876ce2535d81ceb6eeb3ba8278 (patch) | |
tree | 912a71f5a9ffd1694a77f1968d809ae633666433 /riscos | |
parent | 0c30fe98af6c88124cbe234131fae86671f19092 (diff) | |
download | netsurf-291307d64e5d3b876ce2535d81ceb6eeb3ba8278.tar.gz netsurf-291307d64e5d3b876ce2535d81ceb6eeb3ba8278.tar.bz2 |
Terminate raw resource URL string.
svn path=/trunk/netsurf/; revision=12954
Diffstat (limited to 'riscos')
-rw-r--r-- | riscos/gui.c | 4 |
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); |