diff options
Diffstat (limited to 'awkgram.c')
-rw-r--r-- | awkgram.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -4736,7 +4736,8 @@ yyerror(const char *m, ...) count = strlen(mesg) + 1; if (lexptr != NULL) count += (lexeme - thisline) + 2; - emalloc(buf, char *, count, "yyerror"); + emalloc(buf, char *, count+1, "yyerror"); + memset(buf, 0, count+1); bp = buf; |