aboutsummaryrefslogtreecommitdiff
path: root/libexec
diff options
context:
space:
mode:
authorSteve Price <steve@FreeBSD.org>1998-05-03 16:29:06 +0000
committerSteve Price <steve@FreeBSD.org>1998-05-03 16:29:06 +0000
commitf1f61bc60324a8eb50e11927984ea353b152a507 (patch)
tree4df4dc9fb27fc69272dde22426e686bee1adc370 /libexec
parentb24afdcba12e8c590ba1a2412ad3e00f0a741a44 (diff)
Notes
Diffstat (limited to 'libexec')
-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 4d1f6a1d21a28..036a3c934fd41 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;
}