fixed underallocating malloc

This commit is contained in:
fpeters 2005-04-01 17:18:41 +00:00
parent 44d289a21f
commit 26e0629e9c
1 changed files with 1 additions and 1 deletions

View File

@ -71,7 +71,7 @@ char** urlencoded_to_strings(char *str)
st++;
}
result = malloc(sizeof(char*)*n+1);
result = malloc(sizeof(char*)*(n+1));
result[n] = NULL;
st = str;