fixed underallocating malloc
This commit is contained in:
parent
44d289a21f
commit
26e0629e9c
|
@ -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;
|
||||
|
|
Reference in New Issue