Skip to content
Snippets Groups Projects
Commit b7e71a24 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

eeek, append 1 on the right place as otherwise we didn't fix the problem

parent bf8d6426
No related branches found
No related tags found
No related merge requests found
......@@ -551,8 +551,8 @@ char *glob_match_url(char *filename, URLGlob *glob)
char *newstr;
/* we append a single byte to allow for the trailing byte to be appended
at the end of this function outside the while() loop */
allocsize = (appendlen + stringlen)*2 + 1;
newstr=realloc(target, allocsize);
allocsize = (appendlen + stringlen)*2;
newstr=realloc(target, allocsize + 1);
if(NULL ==newstr) {
free(target);
return NULL;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment