Skip to content

Commit

Permalink
Fix bug where instanceName containing spaces caused issues. (#96)
Browse files Browse the repository at this point in the history
  • Loading branch information
hlyang1992 authored Jun 12, 2024
1 parent 2a53b85 commit cf544ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/proxyfmu/process_helper.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ void start_process(
std::cout << "\n";
std::cout << "[proxyfmu] Booting FMU instance '" << instanceName << "'.." << std::endl;

std::string cmd(execStr + " --fmu \"" + fmuPath.string() + "\" --instanceName " + instanceName);
std::string cmd(execStr + " --fmu \"" + fmuPath.string() + "\" --instanceName \"" + instanceName + "\"");

boost::process::ipstream pipe_stream;
boost::process::child c(cmd, boost::process::std_out > pipe_stream);
Expand Down

0 comments on commit cf544ab

Please sign in to comment.