Permalink
Fetching contributors…
Cannot retrieve contributors at this time
14 lines (13 sloc) 388 Bytes
diff --git a/peg-0.1.4/compile.c b/peg-0.1.4/compile.c
index 0ceab92..d146564 100644
--- a/peg/compile.c
+++ b/peg/compile.c
@@ -470,7 +470,7 @@ YY_LOCAL(int) yyText(int begin, int end)\n\
yyleng= 0;\n\
else\n\
{\n\
- while (yytextlen < (yyleng - 1))\n\
+ while (yytextlen < (yyleng + 1))\n\
{\n\
yytextlen *= 2;\n\
yytext= realloc(yytext, yytextlen);\n\