Use snprintf in client/deps
This commit is contained in:
1 parent
1711338035
commit
fe4599fb14
7 files changed
+35
-35
No files matched your search
@@ -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 */
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user