Windows process: allow for binary data output
Do not rely on null termination.
This commit is contained in:
parent
bb4394b8a5
commit
3da7f71fb6
@ -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…
Reference in New Issue
Block a user