summaryrefslogtreecommitdiff
path: root/lex.c
diff options
context:
space:
mode:
Diffstat (limited to 'lex.c')
-rw-r--r--lex.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/lex.c b/lex.c
index 8e744e2c..27049be0 100644
--- a/lex.c
+++ b/lex.c
@@ -1,4 +1,4 @@
1char *rcs_lex = "$Id: lex.c,v 2.30 1996/03/14 15:17:28 roberto Exp roberto $"; 1char *rcs_lex = "$Id: lex.c,v 2.31 1996/03/19 16:50:24 roberto Exp roberto $";
2 2
3 3
4#include <ctype.h> 4#include <ctype.h>
@@ -83,8 +83,7 @@ void luaI_addReserved (void)
83static void growtext (void) 83static void growtext (void)
84{ 84{
85 int size = yytextLast - yytext; 85 int size = yytextLast - yytext;
86 textsize *= 2; 86 textsize = growvector(&yytext, textsize, char, lexEM, MAX_WORD);
87 yytext = growvector(yytext, textsize, char);
88 yytextLast = yytext + size; 87 yytextLast = yytext + size;
89} 88}
90 89