From: Gregory Minshall Date: Thu, 30 Jul 1987 06:45:26 +0000 (-0800) Subject: Fix bug when transparent input and more than one character in X-Git-Tag: BSD-4_3_Net_1-Snapshot-Development~3898 X-Git-Url: https://git.subgeniuskitty.com/unix-history/.git/commitdiff_plain/38c94aaaeb4dd1c45cd566a8f43fe86a801ea67e Fix bug when transparent input and more than one character in an input buffer. SCCS-vsn: usr.bin/tn3270/ascii/termin.c 1.13 --- 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);