summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2009-06-08 20:20:12 +0000
committerJo-Philipp Wich <jow@openwrt.org>2009-06-08 20:20:12 +0000
commite35dccbc7556e95803efc067dbf8a2a4d2bfd552 (patch)
treeaf14cab1ff36573f7eb4d7569d057fdc35285e11
parent9b767cf8dfc1c404f0deb0d8eff704b2e6adeb37 (diff)
libs/luanet: fix error in base64 decoder, patch from fonosfera
-rw-r--r--libs/luanet/src/base64.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/luanet/src/base64.c b/libs/luanet/src/base64.c
index f897cf7aa3..e0c3e7d0e4 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;
}