mirror of
https://github.com/lxsang/antd-lua-plugin
synced 2024-12-27 09:58:21 +01:00
fix data size error in base64 decode binding
This commit is contained in:
parent
63a1324faf
commit
564afeb134
@ -273,7 +273,8 @@ static int l_base64_decode(lua_State *L)
|
|||||||
lua_new_byte_array(L,len);
|
lua_new_byte_array(L,len);
|
||||||
byte_array_t * arr = NULL;
|
byte_array_t * arr = NULL;
|
||||||
arr = l_check_barray(L,2);
|
arr = l_check_barray(L,2);
|
||||||
Base64decode(arr->data, s);
|
len = Base64decode(arr->data, s);
|
||||||
|
arr->size = len;
|
||||||
//lua_pushstring(L,dst);
|
//lua_pushstring(L,dst);
|
||||||
//free(dst);
|
//free(dst);
|
||||||
return 1;
|
return 1;
|
||||||
|
Loading…
Reference in New Issue
Block a user