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
1 changed files with 1 additions and 1 deletions

View File

@ -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': {