Fix bug when transparent input and more than one character in
authorGregory Minshall <minshall@ucbvax.Berkeley.EDU>
Thu, 30 Jul 1987 06:45:26 +0000 (22:45 -0800)
committerGregory Minshall <minshall@ucbvax.Berkeley.EDU>
Thu, 30 Jul 1987 06:45:26 +0000 (22:45 -0800)
an input buffer.

SCCS-vsn: usr.bin/tn3270/ascii/termin.c 1.13

usr/src/usr.bin/tn3270/ascii/termin.c

index 5ad8ee4..133b669 100644 (file)
@@ -20,7 +20,7 @@
  */
 
 #ifndef        lint
  */
 
 #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
 #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--) {
            i = count;
        }
        while (i--) {
-           c = (*buffer)&0x7f;
+           c = (*buffer++)&0x7f;
            *TransPointer++ = c|0x80;
            if (c == '\r') {
                SendTransparent(ourBuffer, TransPointer-ourBuffer);
            *TransPointer++ = c|0x80;
            if (c == '\r') {
                SendTransparent(ourBuffer, TransPointer-ourBuffer);