diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2005-05-16 18:19:00 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2005-05-16 18:19:00 -0300 |
commit | c2bb9abceceef125554595e23b7cc18ad3555c7c (patch) | |
tree | 2c00262ddf0e4f8acc1db83bdee4a56bb2458117 /lobject.c | |
parent | da32450c3d4c8abd3fd6709692859a12a8886511 (diff) | |
download | lua-c2bb9abceceef125554595e23b7cc18ad3555c7c.tar.gz lua-c2bb9abceceef125554595e23b7cc18ad3555c7c.tar.bz2 lua-c2bb9abceceef125554595e23b7cc18ad3555c7c.zip |
better quotes for strings in error messages
Diffstat (limited to 'lobject.c')
-rw-r--r-- | lobject.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lobject.c,v 2.11 2005/03/09 16:28:07 roberto Exp roberto $ | 2 | ** $Id: lobject.c,v 2.12 2005/03/28 12:53:40 roberto Exp roberto $ |
3 | ** Some generic functions over Lua objects | 3 | ** Some generic functions over Lua objects |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -184,7 +184,7 @@ void luaO_chunkid (char *out, const char *source, int bufflen) { | |||
184 | if (*source == '@') { | 184 | if (*source == '@') { |
185 | int l; | 185 | int l; |
186 | source++; /* skip the `@' */ | 186 | source++; /* skip the `@' */ |
187 | bufflen -= sizeof(" `...' "); | 187 | bufflen -= sizeof(" '...' "); |
188 | l = strlen(source); | 188 | l = strlen(source); |
189 | strcpy(out, ""); | 189 | strcpy(out, ""); |
190 | if (l>bufflen) { | 190 | if (l>bufflen) { |