mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-14 10:37:23 -07:00
Use snprintf in client/deps
This commit is contained in:
parent
1711338035
commit
fe4599fb14
7 changed files with 35 additions and 35 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue