mirror of
https://github.com/AppleWin/AppleWin.git
synced 2024-09-28 00:54:40 +00:00
[PVS-Studio] Fix potential security issue sprintf() Bug #301
This commit is contained in:
parent
6f8b75e443
commit
04702ee7c5
@ -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…
Reference in New Issue
Block a user