mirror of
https://github.com/openwrt/luci.git
synced 2025-12-29 06:09:59 +04:00
libs/luanet: fix error in base64 decoder, patch from fonosfera
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user