summaryrefslogtreecommitdiffstats
path: root/libexec/telnetd
diff options
context:
space:
mode:
authorsteve <steve@FreeBSD.org>1998-05-03 16:29:06 +0000
committersteve <steve@FreeBSD.org>1998-05-03 16:29:06 +0000
commitf074da4f3ec194369faca7bf9ab56433e8806253 (patch)
tree6136df6b2c53c08f6038bf147b06eaedb5f99099 /libexec/telnetd
parent9ec9823f3dfdf935d8264af3eac6cd69d0a7a747 (diff)
downloadFreeBSD-src-f074da4f3ec194369faca7bf9ab56433e8806253.zip
FreeBSD-src-f074da4f3ec194369faca7bf9ab56433e8806253.tar.gz
Avoid stairstep effect on output of 'if=...' file.
PR: part of 6492 Submitted by: Chip Norkus via Doug White <studded@san.rr.com>
Diffstat (limited to 'libexec/telnetd')
-rw-r--r--libexec/telnetd/utility.c8
1 files changed, 6 insertions, 2 deletions
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;
}
OpenPOWER on IntegriCloud