=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/tip/Attic/tip.c,v retrieving revision 1.16 retrieving revision 1.17 diff -u -r1.16 -r1.17 --- src/usr.bin/tip/Attic/tip.c 2002/02/25 00:20:19 1.16 +++ src/usr.bin/tip/Attic/tip.c 2002/03/25 16:41:36 1.17 @@ -1,4 +1,4 @@ -/* $OpenBSD: tip.c,v 1.16 2002/02/25 00:20:19 deraadt Exp $ */ +/* $OpenBSD: tip.c,v 1.17 2002/03/25 16:41:36 deraadt Exp $ */ /* $NetBSD: tip.c,v 1.13 1997/04/20 00:03:05 mellon Exp $ */ /* @@ -44,7 +44,7 @@ #if 0 static char sccsid[] = "@(#)tip.c 8.1 (Berkeley) 6/6/93"; #endif -static char rcsid[] = "$OpenBSD: tip.c,v 1.16 2002/02/25 00:20:19 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: tip.c,v 1.17 2002/03/25 16:41:36 deraadt Exp $"; #endif /* not lint */ /* @@ -372,6 +372,7 @@ { char bol = 1; int gch; + char ch; /* * Kinda klugey here... @@ -398,7 +399,8 @@ continue; } else if (gch == '\r') { bol = 1; - parwrite(FD, &gch, 1); + ch = gch; + parwrite(FD, &ch, 1); if (boolean(value(HALFDUPLEX))) printf("\r\n"); continue; @@ -407,9 +409,10 @@ bol = any(gch, value(EOL)); if (boolean(value(RAISE)) && islower(gch)) gch = toupper(gch); - parwrite(FD, &gch, 1); + ch = gch; + parwrite(FD, &ch, 1); if (boolean(value(HALFDUPLEX))) - printf("%c", gch); + printf("%c", ch); } }