libs/luanet: fix error in base64 decoder, patch from fonosfera

This commit is contained in:
Jo-Philipp Wich 2009-06-08 20:20:12 +00:00
parent 9b767cf8df
commit e35dccbc75

View file

@ -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;
}