Fix warning by using the "safe" snprintf.

This commit is contained in:
Steve Checkoway
2008-07-21 10:35:40 +00:00
parent 9bca01da8e
commit 310d05a2cb
+1 -1
View File
@@ -114,7 +114,7 @@ private:
{
char buff[32];
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 );
return 1;
}