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
@@ -408,7 +408,7 @@
*/
#define LUA_NUMBER_SCAN "%lf"
#define LUA_NUMBER_FMT "%.14g"
#define lua_number2str(s,n) sprintf((s), LUA_NUMBER_FMT, (n))
#define lua_number2str(s,l,n) snprintf((s), (l), LUA_NUMBER_FMT, (n))
#define LUAI_MAXNUMBER2STR 32 /* 16 digits, sign, point, and \0 */