mirror of https://github.com/rusefi/lua.git
Corrected direct use of 'snprintf' in 'lstrlib.c'
This commit is contained in:
parent
e8a52281d9
commit
92594f0939
|
@ -1266,7 +1266,7 @@ static int str_format (lua_State *L) {
|
||||||
case 'e': case 'E': case 'g': case 'G': {
|
case 'e': case 'E': case 'g': case 'G': {
|
||||||
lua_Number n = luaL_checknumber(L, arg);
|
lua_Number n = luaL_checknumber(L, arg);
|
||||||
addlenmod(form, LUA_NUMBER_FRMLEN);
|
addlenmod(form, LUA_NUMBER_FRMLEN);
|
||||||
nb = snprintf(buff, maxitem, form, (LUAI_UACNUMBER)n);
|
nb = l_sprintf(buff, maxitem, form, (LUAI_UACNUMBER)n);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case 'p': {
|
case 'p': {
|
||||||
|
|
Loading…
Reference in New Issue