From f074da4f3ec194369faca7bf9ab56433e8806253 Mon Sep 17 00:00:00 2001 From: steve Date: Sun, 3 May 1998 16:29:06 +0000 Subject: Avoid stairstep effect on output of 'if=...' file. PR: part of 6492 Submitted by: Chip Norkus via Doug White --- libexec/telnetd/utility.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'libexec/telnetd') diff --git a/libexec/telnetd/utility.c b/libexec/telnetd/utility.c index 4d1f6a1..036a3c9 100644 --- a/libexec/telnetd/utility.c +++ b/libexec/telnetd/utility.c @@ -36,7 +36,7 @@ static char sccsid[] = "@(#)utility.c 8.2 (Berkeley) 12/15/93"; #endif static const char rcsid[] = - "$Id$"; + "$Id: utility.c,v 1.11 1997/12/08 07:46:53 charnier Exp $"; #endif /* not lint */ #ifdef __FreeBSD__ @@ -441,7 +441,11 @@ putf(cp, where) putlocation = where; while (*cp) { - if (*cp != '%') { + if (*cp =='\n') { + putstr("\r\n"); + cp++; + continue; + } else if (*cp != '%') { putchr(*cp++); continue; } -- cgit v1.1