Better handle file- or path-names with spaces

This commit is contained in:
Axel Kohlmeyer
2022-05-26 21:40:33 -04:00
parent 5f811f852f
commit e2dd08a93e
4 changed files with 7 additions and 5 deletions

View File

@ -100,7 +100,7 @@ public:
std::string convert_binary_to_text(std::string binary_file)
{
BEGIN_HIDE_OUTPUT();
std::string cmdline = fmt::format("{} {}", BINARY2TXT_EXECUTABLE, binary_file);
std::string cmdline = fmt::format("\"{}\" {}", BINARY2TXT_EXECUTABLE, binary_file);
system(cmdline.c_str());
END_HIDE_OUTPUT();
return fmt::format("{}.txt", binary_file);