[PVS-Studio] Fix potential security issue sprintf() Bug #301

This commit is contained in:
michaelangel007 2015-07-30 08:26:18 -07:00
parent 6f8b75e443
commit 04702ee7c5

View File

@ -728,7 +728,7 @@ Update_t CmdProfile (int nArgs)
{
if (! nArgs)
{
sprintf( g_aArgs[ 1 ].sArg, g_aParameters[ PARAM_RESET ].m_sName );
sprintf( g_aArgs[ 1 ].sArg, "%s", g_aParameters[ PARAM_RESET ].m_sName );
nArgs = 1;
}