src/SubProcess.cpp
branchv_0
changeset 95 f2f2b81079a5
parent 62 a467e8cbd16b
--- a/src/SubProcess.cpp	Sat Dec 04 21:14:49 2021 +0100
+++ b/src/SubProcess.cpp	Sat Apr 23 19:08:11 2022 +0200
@@ -55,6 +55,7 @@
 	}
 
 	void write(string_t s) {
+		// if the value contains a null byte 0x00, it will be trimmed (passing 0x00 through would break the protocol)
 		subInputWriter << convertor.to_bytes(s).c_str();
 		subInputWriter.put(SEPARATOR);
 		if (subInputWriter.bad()) throw SubProcess::Exception(L"Unable to write to sub-process.");