mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-11-23 23:09:39 +03:00
Terminate raw resource URL string.
svn path=/trunk/netsurf/; revision=12954
This commit is contained in:
parent
0c30fe98af
commit
291307d64e
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user