Skip to content

Commit c4cf780

Browse files
committed
Fix output bug in old protocol.
1 parent 6b31aa2 commit c4cf780

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

apps/telnet.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,9 +192,9 @@ static void process_old (unsigned char data, int rfd, int wfd)
192192
case 015:
193193
read (rfd, &data, 1);
194194
if (data == NUL)
195-
write (1, crlf, 1);
195+
write (wfd, crlf, 1);
196196
else if (data == 012)
197-
write (1, crlf, 2);
197+
write (wfd, crlf, 2);
198198
else
199199
fprintf (stderr, "[CR without LF or NUL]");
200200
case OMARK:

0 commit comments

Comments
 (0)