summaryrefslogtreecommitdiff
path: root/lobject.c
diff options
context:
space:
mode:
Diffstat (limited to 'lobject.c')
-rw-r--r--lobject.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lobject.c b/lobject.c
index 346db7be..a106e579 100644
--- a/lobject.c
+++ b/lobject.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lobject.c,v 2.32 2009/11/06 17:07:12 roberto Exp roberto $ 2** $Id: lobject.c,v 2.33 2009/11/19 19:06:52 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*/
@@ -221,7 +221,7 @@ void luaO_chunkid (char *out, const char *source, size_t bufflen) {
221 else { /* string; format as [string "source"] */ 221 else { /* string; format as [string "source"] */
222 const char *nl = strchr(source, '\n'); /* find first new line (if any) */ 222 const char *nl = strchr(source, '\n'); /* find first new line (if any) */
223 addstr(out, PRE, LL(PRE)); /* add prefix */ 223 addstr(out, PRE, LL(PRE)); /* add prefix */
224 bufflen -= LL(PRE RETS POS); /* save space for prefix+sufix */ 224 bufflen -= LL(PRE RETS POS); /* save space for prefix+suffix */
225 if (l < bufflen && nl == NULL) { /* small one-line source? */ 225 if (l < bufflen && nl == NULL) { /* small one-line source? */
226 addstr(out, source, l); /* keep it */ 226 addstr(out, source, l); /* keep it */
227 } 227 }