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.31 1999/03/04 21:17:26 roberto Exp roberto $ | 2 | ** $Id: llex.c,v 1.32 1999/03/05 20:45:01 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 | */ |
@@ -45,7 +45,7 @@ void luaX_init (void) { | |||
45 | 45 | ||
46 | void luaX_syntaxerror (LexState *ls, char *s, char *token) { | 46 | void luaX_syntaxerror (LexState *ls, char *s, char *token) { |
47 | char buff[MAXSRC]; | 47 | char buff[MAXSRC]; |
48 | luaL_chunkid(buff, zname(ls->lex_z), MAXSRC); | 48 | luaL_chunkid(buff, zname(ls->lex_z), sizeof(buff)); |
49 | if (token[0] == '\0') | 49 | if (token[0] == '\0') |
50 | token = "<eof>"; | 50 | token = "<eof>"; |
51 | luaL_verror("%.100s;\n last token read: `%.50s' at line %d in %.50s", | 51 | luaL_verror("%.100s;\n last token read: `%.50s' at line %d in %.50s", |