Terminate raw resource URL string.

svn path=/trunk/netsurf/; revision=12954
This commit is contained in:
Michael Drake 2011-10-05 11:54:15 +00:00
parent 0c30fe98af
commit 291307d64e

View File

@ -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);