From 04702ee7c5996b23de499dc2e98df9b9f247e169 Mon Sep 17 00:00:00 2001 From: michaelangel007 Date: Thu, 30 Jul 2015 08:26:18 -0700 Subject: [PATCH] [PVS-Studio] Fix potential security issue sprintf() Bug #301 --- source/Debugger/Debug.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/Debugger/Debug.cpp b/source/Debugger/Debug.cpp index db250124..91bbba47 100644 --- a/source/Debugger/Debug.cpp +++ b/source/Debugger/Debug.cpp @@ -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; }