aboutsummaryrefslogtreecommitdiff
path: root/llex.c
diff options
context:
space:
mode:
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 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