aboutsummaryrefslogtreecommitdiff
path: root/ldebug.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2001-03-06 11:46:54 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2001-03-06 11:46:54 -0300
commite9a38203700865d36c3b2861200674a21930c1b5 (patch)
treef538c91f7d3faa8221906ff8b93b24d419ebd8e7 /ldebug.c
parent9e8a46daa28e902b4a6d74134d96e80411789175 (diff)
downloadlua-e9a38203700865d36c3b2861200674a21930c1b5.tar.gz
lua-e9a38203700865d36c3b2861200674a21930c1b5.tar.bz2
lua-e9a38203700865d36c3b2861200674a21930c1b5.zip
sizeof(string) != strlen(string)+1 when sizeof(char) != 1
Diffstat (limited to 'ldebug.c')
-rw-r--r--ldebug.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ldebug.c b/ldebug.c
index c462768d..f0b71758 100644
--- a/ldebug.c
+++ b/ldebug.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: ldebug.c,v 1.70 2001/02/23 20:30:52 roberto Exp roberto $ 2** $Id: ldebug.c,v 1.71 2001/03/02 17:27:50 roberto Exp roberto $
3** Debug Interface 3** Debug Interface
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -223,7 +223,7 @@ static void funcinfo (lua_State *L, lua_Debug *ar, StkId func) {
223 } 223 }
224 else 224 else
225 infoLproto(ar, cl->f.l); 225 infoLproto(ar, cl->f.l);
226 luaO_chunkid(ar->short_src, ar->source, sizeof(ar->short_src)); 226 luaO_chunkid(ar->short_src, ar->source, LUA_IDSIZE);
227 if (ar->linedefined == 0) 227 if (ar->linedefined == 0)
228 ar->what = l_s("main"); 228 ar->what = l_s("main");
229} 229}