Open mark64 opened 1 year ago
The compat.hpp implementation returns i + 1 when it encounters a null byte: https://github.com/zeromq/libzmq/blob/94bf58e43c2c4f7acbb5cdb7a18fdc7f28f72182/src/compat.hpp#L68
However, the man page says it should exclude the null byte: https://man7.org/linux/man-pages/man3/strnlen.3.html
I believe this should change, but want to check
The compat.hpp implementation returns i + 1 when it encounters a null byte: https://github.com/zeromq/libzmq/blob/94bf58e43c2c4f7acbb5cdb7a18fdc7f28f72182/src/compat.hpp#L68
However, the man page says it should exclude the null byte: https://man7.org/linux/man-pages/man3/strnlen.3.html
I believe this should change, but want to check