diff --git a/libs/pbd/system_exec.cc b/libs/pbd/system_exec.cc index dfafa1a3ac..ce6f608adb 100644 --- a/libs/pbd/system_exec.cc +++ b/libs/pbd/system_exec.cc @@ -547,7 +547,8 @@ SystemExec::output_interposer() } if (bytesRead < 1) continue; /* actually not needed; but this is safe. */ data[bytesRead] = 0; - ReadStdout(data, bytesRead); /* EMIT SIGNAL */ + std::string rv = std::string (data, bytesRead); + ReadStdout(rv, bytesRead); /* EMIT SIGNAL */ } Terminated(); /* EMIT SIGNAL */ pthread_exit(0);