# HG changeset patch # User František Kučera # Date 1650706161 -7200 # Node ID b717a552e63f1f155b2aa3b39aa49c9f791083c1 # Parent 78b8abedb7f0130b4f5fd55c952d13d40de12b22 do not stop at null byte 0x00; replace them with '@' I diff -r 78b8abedb7f0 -r b717a552e63f src/NullByteHandler.h --- a/src/NullByteHandler.h Sat Dec 04 21:14:52 2021 +0100 +++ b/src/NullByteHandler.h Sat Apr 23 11:29:21 2022 +0200 @@ -51,7 +51,8 @@ } void attribute(const string_t& value) override { - output << convertor.to_bytes(value).c_str(); + const std::string octets = convertor.to_bytes(value); + for (char ch : octets) output.put(ch ? ch : '@'); output.put(0); }