diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/lj_err.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lj_err.c b/src/lj_err.c index 71c561b1..20be9e9a 100644 --- a/src/lj_err.c +++ b/src/lj_err.c | |||
| @@ -204,7 +204,7 @@ static void err_chunkid(char *out, const char *src) | |||
| 204 | strcpy(out, src); | 204 | strcpy(out, src); |
| 205 | } else { /* out = [string "string"] */ | 205 | } else { /* out = [string "string"] */ |
| 206 | size_t len; /* Length, up to first control char. */ | 206 | size_t len; /* Length, up to first control char. */ |
| 207 | for (len = 0; len < LUA_IDSIZE-11; len++) | 207 | for (len = 0; len < LUA_IDSIZE-12; len++) |
| 208 | if (((const unsigned char *)src)[len] < ' ') break; | 208 | if (((const unsigned char *)src)[len] < ' ') break; |
| 209 | strcpy(out, "[string \""); out += 9; | 209 | strcpy(out, "[string \""); out += 9; |
| 210 | if (src[len] != '\0') { /* must truncate? */ | 210 | if (src[len] != '\0') { /* must truncate? */ |
