[PVS-Studio] Fix potential security issue sprintf() Bug #301
This commit is contained in:
parent
6f8b75e443
commit
04702ee7c5
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue