From 4c721049c3114c946848fbbd38d6180aa7af537d Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Sun, 4 Apr 2010 23:45:09 +0200 Subject: who: fix attempts to open '/dev/dev/ttyX'; make columns a bit wider, add -H function old new delta who_main 292 363 +71 Signed-off-by: Denys Vlasenko --- networking/telnetd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'networking/telnetd.c') diff --git a/networking/telnetd.c b/networking/telnetd.c index dd59de9d4..cab94f0f7 100644 --- a/networking/telnetd.c +++ b/networking/telnetd.c @@ -74,11 +74,11 @@ struct globals { string of characters fit for the terminal. Do this by packing all characters meant for the terminal sequentially towards the end of buf. - Return a pointer to the beginning of the characters meant for the terminal. + Return a pointer to the beginning of the characters meant for the terminal and make *num_totty the number of characters that should be sent to the terminal. - Note - If an IAC (3 byte quantity) starts before (bf + len) but extends + Note - if an IAC (3 byte quantity) starts before (bf + len) but extends past (bf + len) then that IAC will be left unprocessed and *processed will be less than len. -- cgit v1.2.3