From 2c23e2f45a4a2159b252bda3fd2808ad1553ce4a Mon Sep 17 00:00:00 2001 From: Alexey Gulev Date: Tue, 24 Sep 2019 09:48:03 +0200 Subject: [PATCH] Replaced strncat with dmStrlCat --- extension-iap/src/iap_private.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/extension-iap/src/iap_private.cpp b/extension-iap/src/iap_private.cpp index bb6636d..fad4ed6 100644 --- a/extension-iap/src/iap_private.cpp +++ b/extension-iap/src/iap_private.cpp @@ -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; }