From f1f61bc60324a8eb50e11927984ea353b152a507 Mon Sep 17 00:00:00 2001 From: Steve Price Date: Sun, 3 May 1998 16:29:06 +0000 Subject: [PATCH] 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(-) diff --git a/libexec/telnetd/utility.c b/libexec/telnetd/utility.c index 4d1f6a1d21a..036a3c934fd 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; }