Fix warning by using the "safe" snprintf.
This commit is contained in:
@@ -114,7 +114,7 @@ private:
|
|||||||
{
|
{
|
||||||
char buff[32];
|
char buff[32];
|
||||||
const void *pData = check( L, 1 );
|
const void *pData = check( L, 1 );
|
||||||
sprintf( buff, "%p", pData );
|
snprintf( buff, sizeof(buff), "%p", pData );
|
||||||
lua_pushfstring( L, "%s (%s)", m_sClassName.c_str(), buff );
|
lua_pushfstring( L, "%s (%s)", m_sClassName.c_str(), buff );
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user