diff --git a/src/utils.c b/src/utils.c index 8045120..7427a72 100644 --- a/src/utils.c +++ b/src/utils.c @@ -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;