Roberto Ierusalimschy преди 26 години
родител
ревизия
3e9c6a8a24
променени са 1 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 2 2
      llex.c

+ 2 - 2
llex.c

@@ -1,5 +1,5 @@
 /*
 /*
-** $Id: llex.c,v 1.32 1999/03/05 20:45:01 roberto Exp roberto $
+** $Id: llex.c,v 1.33 1999/03/11 18:59:19 roberto Exp roberto $
 ** Lexical Analyzer
 ** Lexical Analyzer
 ** See Copyright Notice in lua.h
 ** See Copyright Notice in lua.h
 */
 */
@@ -71,7 +71,7 @@ void luaX_token2str (int token, char *s) {
 
 
 static void luaX_invalidchar (LexState *ls, int c) {
 static void luaX_invalidchar (LexState *ls, int c) {
   char buff[10];
   char buff[10];
-  sprintf(buff, "0x%X", c);
+  sprintf(buff, "0x%02X", c);
   luaX_syntaxerror(ls, "invalid control char", buff);
   luaX_syntaxerror(ls, "invalid control char", buff);
 }
 }