From e35dccbc7556e95803efc067dbf8a2a4d2bfd552 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Mon, 8 Jun 2009 20:20:12 +0000 Subject: [PATCH] libs/luanet: fix error in base64 decoder, patch from fonosfera --- libs/luanet/src/base64.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/luanet/src/base64.c b/libs/luanet/src/base64.c index f897cf7aa..e0c3e7d0e 100644 --- a/libs/luanet/src/base64.c +++ b/libs/luanet/src/base64.c @@ -70,7 +70,7 @@ int b64_decode(lua_State *L) } if(!(dst - out)) return 0; - lua_pushstring(L, (char*)out); + lua_pushlstring(L, (char*)out, dst - out); return 1; } -- 2.25.1