aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>1999-03-25 18:05:05 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>1999-03-25 18:05:05 -0300
commit3e9c6a8a247ef4c4c643dd951120409833221f86 (patch)
treefce26415299abd4096e2fb37708f55ce749152cf
parent1f4e2ba7b29628dad7d98030c8432ca7265a85c9 (diff)
downloadlua-3e9c6a8a247ef4c4c643dd951120409833221f86.tar.gz
lua-3e9c6a8a247ef4c4c643dd951120409833221f86.tar.bz2
lua-3e9c6a8a247ef4c4c643dd951120409833221f86.zip
details
-rw-r--r--llex.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/llex.c b/llex.c
index 0080a219..384da751 100644
--- a/llex.c
+++ b/llex.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: llex.c,v 1.32 1999/03/05 20:45:01 roberto Exp roberto $ 2** $Id: llex.c,v 1.33 1999/03/11 18:59:19 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*/
@@ -71,7 +71,7 @@ void luaX_token2str (int token, char *s) {
71 71
72static void luaX_invalidchar (LexState *ls, int c) { 72static void luaX_invalidchar (LexState *ls, int c) {
73 char buff[10]; 73 char buff[10];
74 sprintf(buff, "0x%X", c); 74 sprintf(buff, "0x%02X", c);
75 luaX_syntaxerror(ls, "invalid control char", buff); 75 luaX_syntaxerror(ls, "invalid control char", buff);
76} 76}
77 77