Skip to content

Commit f910c90

Browse files
committed
Fix ASCII character detection in conversion to std::string
the 'Space' ASCII character should also be recognized as such.
1 parent 81c2938 commit f910c90

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

zmq.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -544,7 +544,7 @@ class message_t
544544
while (size--) {
545545
byte = *msg_data++;
546546

547-
is_ascii[1] = (byte >= 33 && byte < 127);
547+
is_ascii[1] = (byte >= 32 && byte < 127);
548548
if (is_ascii[1] != is_ascii[0])
549549
os << " "; // Separate text/non text
550550

0 commit comments

Comments
 (0)