Windows process: allow for binary data output
Do not rely on null termination.
This commit is contained in:
@@ -547,7 +547,8 @@ SystemExec::output_interposer()
|
|||||||
}
|
}
|
||||||
if (bytesRead < 1) continue; /* actually not needed; but this is safe. */
|
if (bytesRead < 1) continue; /* actually not needed; but this is safe. */
|
||||||
data[bytesRead] = 0;
|
data[bytesRead] = 0;
|
||||||
ReadStdout(data, bytesRead); /* EMIT SIGNAL */
|
std::string rv = std::string (data, bytesRead);
|
||||||
|
ReadStdout(rv, bytesRead); /* EMIT SIGNAL */
|
||||||
}
|
}
|
||||||
Terminated(); /* EMIT SIGNAL */
|
Terminated(); /* EMIT SIGNAL */
|
||||||
pthread_exit(0);
|
pthread_exit(0);
|
||||||
|
|||||||
Reference in New Issue
Block a user