summaryrefslogtreecommitdiff
path: root/perly.c
diff options
context:
space:
mode:
authorSteve Hay <SteveHay@planit.com>2005-07-12 09:01:11 +0000
committerSteve Hay <SteveHay@planit.com>2005-07-12 09:01:11 +0000
commit4b711db359c9778a062571f88eafc4dab0b9c81d (patch)
tree3a48c77416eabd4378383e7cffe1b4e0ada8c01f /perly.c
parent5b6a3331e95aaaac258e709109a5361f19459b02 (diff)
downloadperl-4b711db359c9778a062571f88eafc4dab0b9c81d.tar.gz
Missed a New() -> Newx().
This one only had 3 args to start with! Presumably nobody uses YYERROR_VERBOSE. (The yystpcpy() calls don't look right either, but someone else that is interested in YYERROR_VERBOSE will have to look into that.) p4raw-id: //depot/perl@25119
Diffstat (limited to 'perly.c')
-rw-r--r--perly.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/perly.c b/perly.c
index 6e92e27f62..fd4df1d026 100644
--- a/perly.c
+++ b/perly.c
@@ -567,7 +567,7 @@ Perl_yyparse (pTHX)
yysize += yystrlen (yytname[yyx]) + 15, yycount++;
yysize += yystrlen ("syntax error, unexpected ") + 1;
yysize += yystrlen (yytname[yytype]);
- New(yymsg, yysize, char *);
+ Newx(yymsg, yysize, char *);
if (yymsg != 0) {
const char *yyp = yystpcpy (yymsg, "syntax error, unexpected ");
yyp = yystpcpy (yyp, yytname[yytype]);