diff options
| -rw-r--r-- | lstrlib.c | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: lstrlib.c,v 1.238 2015/11/23 11:31:21 roberto Exp roberto $ | 2 | ** $Id: lstrlib.c,v 1.239 2015/11/25 16:28:17 roberto Exp roberto $ |
| 3 | ** Standard library for string operations and pattern-matching | 3 | ** Standard library for string operations and pattern-matching |
| 4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
| 5 | */ | 5 | */ |
| @@ -931,7 +931,7 @@ static void addquoted (lua_State *L, luaL_Buffer *b, int arg) { | |||
| 931 | luaL_addchar(b, '\\'); | 931 | luaL_addchar(b, '\\'); |
| 932 | luaL_addchar(b, *s); | 932 | luaL_addchar(b, *s); |
| 933 | } | 933 | } |
| 934 | else if (*s == '\0' || iscntrl(uchar(*s))) { | 934 | else if (iscntrl(uchar(*s))) { |
| 935 | char buff[10]; | 935 | char buff[10]; |
| 936 | if (!isdigit(uchar(*(s+1)))) | 936 | if (!isdigit(uchar(*(s+1)))) |
| 937 | l_sprintf(buff, sizeof(buff), "\\%d", (int)uchar(*s)); | 937 | l_sprintf(buff, sizeof(buff), "\\%d", (int)uchar(*s)); |
