diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1997-11-30 20:30:51 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1997-11-30 20:30:51 +0000 |
commit | edc1593fb6e154b7b462a4416fa785abb8ea6425 (patch) | |
tree | e84225fe230b402099fbb4fd0f80301c8329d3c1 /usr.bin/talk | |
parent | faffbb57bce71371bec85876e8b7d8534de0800c (diff) |
treat \n and \r the same on input
Diffstat (limited to 'usr.bin/talk')
-rw-r--r-- | usr.bin/talk/display.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/talk/display.c b/usr.bin/talk/display.c index 4d2e3679362..f0af194d45a 100644 --- a/usr.bin/talk/display.c +++ b/usr.bin/talk/display.c @@ -1,4 +1,4 @@ -/* $OpenBSD: display.c,v 1.3 1996/10/21 03:51:58 deraadt Exp $ */ +/* $OpenBSD: display.c,v 1.4 1997/11/30 20:30:50 deraadt Exp $ */ /* $NetBSD: display.c,v 1.3 1994/12/09 02:14:13 jtc Exp $ */ /* @@ -38,7 +38,7 @@ #if 0 static char sccsid[] = "@(#)display.c 8.1 (Berkeley) 6/6/93"; #endif -static char rcsid[] = "$OpenBSD: display.c,v 1.3 1996/10/21 03:51:58 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: display.c,v 1.4 1997/11/30 20:30:50 deraadt Exp $"; #endif /* not lint */ /* @@ -78,7 +78,7 @@ display(win, text, size) char cch; for (i = 0; i < size; i++) { - if (*text == '\n') { + if (*text == '\n' || *text == '\r') { xscroll(win, 0); text++; continue; |