aboutsummaryrefslogtreecommitdiff
path: root/llex.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>1999-03-11 15:59:19 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>1999-03-11 15:59:19 -0300
commit82ad0d57705dd3be41081118781762b72e334f1b (patch)
tree6913717d8034552944758a3275649550caeaadd0 /llex.c
parent256d1bea08ca12890372c6c53fc191e7b90c5a8e (diff)
downloadlua-82ad0d57705dd3be41081118781762b72e334f1b.tar.gz
lua-82ad0d57705dd3be41081118781762b72e334f1b.tar.bz2
lua-82ad0d57705dd3be41081118781762b72e334f1b.zip
details
Diffstat (limited to 'llex.c')
-rw-r--r--llex.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/llex.c b/llex.c
index 16ed522e..0080a219 100644
--- a/llex.c
+++ b/llex.c
@@ -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
46void luaX_syntaxerror (LexState *ls, char *s, char *token) { 46void 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",