[Toybox] [PATCH] telnet: just use dprintf() for IAC sequences.

enh enh at google.com
Fri Apr 30 14:55:45 PDT 2021


I don't see the need for the separate buffer, and just using dprintf()
directly is less code. The only downside really is having to get the
right number of `%c`s in your format string.
---
 toys/pending/telnet.c | 53 ++++++++++---------------------------------
 1 file changed, 12 insertions(+), 41 deletions(-)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20210430/b8014a41/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-telnet-just-use-dprintf-for-IAC-sequences.patch
Type: text/x-patch
Size: 4527 bytes
Desc: not available
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20210430/b8014a41/attachment.bin>


More information about the Toybox mailing list