mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-12 16:36:28 +01:00
Windows process: allow for binary data output
Do not rely on null termination.
This commit is contained in:
parent
bb4394b8a5
commit
3da7f71fb6
1 changed files with 2 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue