aboutsummaryrefslogtreecommitdiffstats
path: root/awkgram.c
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2014-12-14 20:38:14 +0200
committerArnold D. Robbins <arnold@skeeve.com>2014-12-14 20:38:14 +0200
commitc55956b6a10d0a4d0b151c1be976dc9c344c1103 (patch)
tree8711c2b5a501af116782f470fa5c0ec9e18dbabf /awkgram.c
parentb6ac928a53d146233741fc5f7fe1cac66de27303 (diff)
downloadegawk-c55956b6a10d0a4d0b151c1be976dc9c344c1103.tar.gz
egawk-c55956b6a10d0a4d0b151c1be976dc9c344c1103.tar.bz2
egawk-c55956b6a10d0a4d0b151c1be976dc9c344c1103.zip
More fixes to stop allocating an extra byte.
Diffstat (limited to 'awkgram.c')
-rw-r--r--awkgram.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/awkgram.c b/awkgram.c
index 4715290d..827c09ba 100644
--- a/awkgram.c
+++ b/awkgram.c
@@ -4548,7 +4548,7 @@ yyerror(const char *m, ...)
if (mesg == NULL)
mesg = m;
- count = (bp - thisline) + strlen(mesg) + 2 + 1;
+ count = (bp - thisline) + strlen(mesg) + 1 + 1;
emalloc(buf, char *, count, "yyerror");
bp = buf;