Skip to content

Commit

Permalink
parser: fix realloc issue
Browse files Browse the repository at this point in the history
Fix reallocation issue introduced in last merge
  • Loading branch information
acassen committed Feb 4, 2014
1 parent 3bdb10d commit 967d878
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/parser.c
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ set_value(vector_t *strvec)
if (!alloc)
alloc = (char *) MALLOC(len + 1);
else {
alloc = (char *) REALLOC(alloc, (len + 1));
alloc = (char *) REALLOC(alloc, 2 * (len + 1));
tmp = vector_slot(strvec, i-1);
if (*str != '"' && *tmp != '"')
strncat(alloc, " ", 1);
Expand Down

0 comments on commit 967d878

Please sign in to comment.