From: Steve Hay Date: Tue, 12 Jul 2005 09:01:11 +0000 (+0000) Subject: Missed a New() -> Newx(). X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=4b711db359c9778a062571f88eafc4dab0b9c81d;p=p5sagit%2Fp5-mst-13.2.git 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 --- diff --git a/perly.c b/perly.c index 6e92e27..fd4df1d 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]);