aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2004-06-08 11:31:15 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2004-06-08 11:31:15 -0300
commit2b2d8ecd7aba6cc7604532c53372db01a30618d3 (patch)
tree6a556c97a953e00aa4f7486635e45f220165e299
parent75057dfcedf9fb99660eed490c399ab3143e62c1 (diff)
downloadlua-2b2d8ecd7aba6cc7604532c53372db01a30618d3.tar.gz
lua-2b2d8ecd7aba6cc7604532c53372db01a30618d3.tar.bz2
lua-2b2d8ecd7aba6cc7604532c53372db01a30618d3.zip
details
-rw-r--r--lstrlib.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lstrlib.c b/lstrlib.c
index 815b530c..502ea814 100644
--- a/lstrlib.c
+++ b/lstrlib.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lstrlib.c,v 1.101 2004/01/02 11:54:14 roberto Exp roberto $ 2** $Id: lstrlib.c,v 1.102 2004/04/30 20:13:38 roberto Exp roberto $
3** Standard library for string operations and pattern-matching 3** Standard library for string operations and pattern-matching
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -140,6 +140,7 @@ static int writer (lua_State *L, const void* b, size_t size, void* B) {
140static int str_dump (lua_State *L) { 140static int str_dump (lua_State *L) {
141 luaL_Buffer b; 141 luaL_Buffer b;
142 luaL_checktype(L, 1, LUA_TFUNCTION); 142 luaL_checktype(L, 1, LUA_TFUNCTION);
143 lua_settop(L, 1);
143 luaL_buffinit(L,&b); 144 luaL_buffinit(L,&b);
144 if (!lua_dump(L, writer, &b)) 145 if (!lua_dump(L, writer, &b))
145 luaL_error(L, "unable to dump given function"); 146 luaL_error(L, "unable to dump given function");