Use snprintf in client/deps

This commit is contained in:
Doridian committed 2022-06-10 12:29:18 -07:00
1 parent 1711338035
commit fe4599fb14
7 files changed
+35 -35

No files matched your search

+1 -1
View File
@@ -49,7 +49,7 @@ int luaV_tostring(lua_State *L, StkId obj) {
else {
char s[LUAI_MAXNUMBER2STR];
lua_Number n = nvalue(obj);
int l = lua_number2str(s, n);
int l = lua_number2str(s, sizeof(s), n);
setsvalue2s(L, obj, luaS_newlstr(L, s, l));
return 1;
}