From 92594f09395800f6f085ca7501ffd1f7aef25e22 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Fri, 28 Feb 2020 10:37:14 -0300 Subject: [PATCH] Corrected direct use of 'snprintf' in 'lstrlib.c' --- lstrlib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lstrlib.c b/lstrlib.c index e47a1d8d..28df2d45 100644 --- a/lstrlib.c +++ b/lstrlib.c @@ -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': {