1
0
Fork 0

DBG: remove explicit size for memset in command line

This commit is contained in:
mrexodia 2017-07-25 13:31:53 +02:00
parent 2c3a16fbb5
commit db9f8c845b
No known key found for this signature in database
GPG Key ID: FC89E0AAA0C1AAD8
2 changed files with 2 additions and 2 deletions

View File

@ -103,7 +103,7 @@ void CmdLineCacheLoad(JSON Root)
EXCLUSIVE_ACQUIRE(LockCmdLine);
// Clear command line
memset(commandLine, 0, MAX_SETTING_SIZE);
memset(commandLine, 0, sizeof(commandLine));
// Get a handle to the root object -> commandLine
const JSON jsonCmdLine = json_object_get(Root, "commandLine");

View File

@ -1783,7 +1783,7 @@ static void cbLoadDll(LOAD_DLL_DEBUG_INFO* LoadDll)
GuiUpdateBreakpointsView();
bool bAlreadySetEntry = false;
char command[MAX_PATH*2] = "";
char command[MAX_PATH * 2] = "";
bool bIsDebuggingThis = false;
if(bFileIsDll && !_stricmp(DLLDebugFileName, szFileName) && !bIsAttached) //Set entry breakpoint
{