=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/mg/ttyio.c,v retrieving revision 1.24 retrieving revision 1.25 diff -u -r1.24 -r1.25 --- src/usr.bin/mg/ttyio.c 2003/11/09 00:23:01 1.24 +++ src/usr.bin/mg/ttyio.c 2003/12/04 01:37:28 1.25 @@ -1,4 +1,4 @@ -/* $OpenBSD: ttyio.c,v 1.24 2003/11/09 00:23:01 vincent Exp $ */ +/* $OpenBSD: ttyio.c,v 1.25 2003/12/04 01:37:28 vincent Exp $ */ /* * POSIX terminal I/O. @@ -171,7 +171,7 @@ } else if (ret == 1) break; } while (1); - return ((int) c); + return ((int) c) & 0xFF; } /*