mirror of
https://github.com/defold/extension-iap
synced 2025-06-27 02:17:51 +02:00
Replaced strncat with dmStrlCat
This commit is contained in:
parent
af80e05796
commit
2c23e2f45a
@ -42,14 +42,14 @@ char* IAP_List_CreateBuffer(lua_State* L)
|
||||
lua_pushnil(L);
|
||||
while (lua_next(L, 1) != 0) {
|
||||
if (i > 0) {
|
||||
strncat(buf, ",", length+1);
|
||||
dmStrlCat(buf, ",", length+1);
|
||||
}
|
||||
const char* p = lua_tostring(L, -1);
|
||||
if(!p)
|
||||
{
|
||||
luaL_error(L, "IAP: Failed to get value (string) from table");
|
||||
}
|
||||
strncat(buf, p, length+1);
|
||||
dmStrlCat(buf, p, length+1);
|
||||
lua_pop(L, 1);
|
||||
++i;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user