From ea9d29658cfbc31c0825b329cf61dee1324f6dde Mon Sep 17 00:00:00 2001 From: Kampfkarren Date: Thu, 28 Jul 2022 17:31:31 -0700 Subject: [PATCH] Remove luaL_reservebuffer --- VM/src/lstrlib.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/VM/src/lstrlib.cpp b/VM/src/lstrlib.cpp index 1708d30c..79161612 100644 --- a/VM/src/lstrlib.cpp +++ b/VM/src/lstrlib.cpp @@ -1050,7 +1050,6 @@ static int str_format(lua_State* L) size_t length; const char* string = luaL_tolstring(L, arg, &length); - luaL_reservebuffer(&b, length, -1); luaL_addlstring(&b, string, length); continue; /* skip the `addsize' at the end */