I stumbled upon this bug when I was trying to send binary data through telnet connection. Came up with the trivial fix, but then I've found identical patch: https://github.com/freebsd/freebsd/commit/c3694d985891efb8a156e933600d23132577a053 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=6317
It looks like this one-liner is worth applying. Thanks.
