From 38c94aaaeb4dd1c45cd566a8f43fe86a801ea67e Mon Sep 17 00:00:00 2001 From: Gregory Minshall Date: Wed, 29 Jul 1987 22:45:26 -0800 Subject: [PATCH] Fix bug when transparent input and more than one character in an input buffer. SCCS-vsn: usr.bin/tn3270/ascii/termin.c 1.13 --- usr/src/usr.bin/tn3270/ascii/termin.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr/src/usr.bin/tn3270/ascii/termin.c b/usr/src/usr.bin/tn3270/ascii/termin.c index 5ad8ee475b..133b6696e1 100644 --- a/usr/src/usr.bin/tn3270/ascii/termin.c +++ b/usr/src/usr.bin/tn3270/ascii/termin.c @@ -20,7 +20,7 @@ */ #ifndef lint -static char sccsid[] = "@(#)termin.c 1.12 (Berkeley) %G%"; +static char sccsid[] = "@(#)termin.c 1.13 (Berkeley) %G%"; #endif /* ndef lint */ /* this takes characters from the keyboard, and produces 3270 keystroke @@ -194,7 +194,7 @@ register int count; /* how many bytes in this buffer */ i = count; } while (i--) { - c = (*buffer)&0x7f; + c = (*buffer++)&0x7f; *TransPointer++ = c|0x80; if (c == '\r') { SendTransparent(ourBuffer, TransPointer-ourBuffer); -- 2.20.1