Skip to content

Commit

Permalink
Merge pull request #110 from flix-/master
Browse files Browse the repository at this point in the history
Fixes #109
  • Loading branch information
troglobit authored Aug 12, 2018
2 parents 268006b + f2bfb90 commit 4337f34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lexer.l
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ static void qputc(char ch)
{
if (qstring_index >= qstring_len) {
qstring_len += CFG_QSTRING_BUFSIZ;
cfg_qstring = (char *)realloc(cfg_qstring, qstring_len);
cfg_qstring = (char *)realloc(cfg_qstring, qstring_len + 1);
assert(cfg_qstring);
memset(cfg_qstring + qstring_index, 0, CFG_QSTRING_BUFSIZ);
}
Expand Down

0 comments on commit 4337f34

Please sign in to comment.