diff options
Diffstat (limited to 'llex.c')
-rw-r--r-- | llex.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: llex.c,v 1.80 2001/02/23 17:17:25 roberto Exp roberto $ | 2 | ** $Id: llex.c,v 1.81 2001/02/23 20:32:16 roberto Exp roberto $ |
3 | ** Lexical Analyzer | 3 | ** Lexical Analyzer |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -58,7 +58,7 @@ void luaX_checklimit (LexState *ls, int val, int limit, const l_char *msg) { | |||
58 | 58 | ||
59 | void luaX_syntaxerror (LexState *ls, const l_char *s, const l_char *token) { | 59 | void luaX_syntaxerror (LexState *ls, const l_char *s, const l_char *token) { |
60 | l_char buff[MAXSRC]; | 60 | l_char buff[MAXSRC]; |
61 | luaO_chunkid(buff, getstr(ls->source), sizeof(buff)); | 61 | luaO_chunkid(buff, getstr(ls->source), MAXSRC); |
62 | luaO_verror(ls->L, | 62 | luaO_verror(ls->L, |
63 | l_s("%.99s;\n last token read: `%.30s' at line %d in %.80s"), | 63 | l_s("%.99s;\n last token read: `%.30s' at line %d in %.80s"), |
64 | s, token, ls->linenumber, buff); | 64 | s, token, ls->linenumber, buff); |