1
0
mirror of https://github.com/lua/lua synced 2025-03-24 22:52:51 +03:00

Corrected direct use of 'snprintf' in 'lstrlib.c'

This commit is contained in:
Roberto Ierusalimschy 2020-02-28 10:37:14 -03:00
parent e8a52281d9
commit 92594f0939

@ -1266,7 +1266,7 @@ static int str_format (lua_State *L) {
case 'e': case 'E': case 'g': case 'G': {
lua_Number n = luaL_checknumber(L, arg);
addlenmod(form, LUA_NUMBER_FRMLEN);
nb = snprintf(buff, maxitem, form, (LUAI_UACNUMBER)n);
nb = l_sprintf(buff, maxitem, form, (LUAI_UACNUMBER)n);
break;
}
case 'p': {