mirror of
https://github.com/lua/lua.git
synced 2025-07-04 15:09:38 +00:00
better quotes for strings in error messages
This commit is contained in:
parent
da32450c3d
commit
c2bb9abcec
16 changed files with 85 additions and 78 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
** $Id: lobject.c,v 2.11 2005/03/09 16:28:07 roberto Exp roberto $
|
||||
** $Id: lobject.c,v 2.12 2005/03/28 12:53:40 roberto Exp roberto $
|
||||
** Some generic functions over Lua objects
|
||||
** See Copyright Notice in lua.h
|
||||
*/
|
||||
|
@ -184,7 +184,7 @@ void luaO_chunkid (char *out, const char *source, int bufflen) {
|
|||
if (*source == '@') {
|
||||
int l;
|
||||
source++; /* skip the `@' */
|
||||
bufflen -= sizeof(" `...' ");
|
||||
bufflen -= sizeof(" '...' ");
|
||||
l = strlen(source);
|
||||
strcpy(out, "");
|
||||
if (l>bufflen) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue