1
0
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:
Xuan Sang LE 2018-10-01 17:54:31 +02:00
parent 63a1324faf
commit 564afeb134

View File

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