mirror of
https://github.com/AppleWin/AppleWin.git
synced 2024-06-26 16:29:30 +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)
|
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;
|
nArgs = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user