Skip to content

Commit ee3f250

Browse files
committed
fix #13968
1 parent 8ecd18f commit ee3f250

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

cli/cppcheckexecutor.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -712,9 +712,10 @@ int CppCheckExecutor::executeCommand(std::string exe, std::vector<std::string> a
712712
joinedArgs += arg;
713713
}
714714

715-
const std::string cmd = exe + " " + joinedArgs + " " + redirect;
715+
std::string cmd = exe + " " + joinedArgs + " " + redirect;
716716

717717
#ifdef _WIN32
718+
cmd = "\"" + cmd + "\"";
718719
FILE* p = _popen(cmd.c_str(), "r");
719720
#else
720721
FILE *p = popen(cmd.c_str(), "r");

0 commit comments

Comments
 (0)