mirror of
https://github.com/azerothcore/mod-ale
synced 2025-11-29 15:38:17 +08:00
sprintf to snprintf (deprecated MacOSX15.0) (#198)
This commit is contained in:
@@ -29,7 +29,7 @@ namespace LuaQuery
|
||||
if (field >= count)
|
||||
{
|
||||
char arr[256];
|
||||
sprintf(arr, "trying to access invalid field index %u. There are %u fields available and the indexes start from 0", field, count);
|
||||
snprintf(arr, sizeof(arr), "trying to access invalid field index %u. There are %u fields available and the indexes start from 0", field, count);
|
||||
luaL_argerror(L, 2, arr);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user