diff options
author | Vincent Labrecque <vincent@cvs.openbsd.org> | 2003-12-04 01:37:29 +0000 |
---|---|---|
committer | Vincent Labrecque <vincent@cvs.openbsd.org> | 2003-12-04 01:37:29 +0000 |
commit | a954f0d1e9d622a88e3ea98b5a971ad78da7ae87 (patch) | |
tree | 1143ac8e23bf1a8648c9e25eeef033d902d32a43 /usr.bin | |
parent | 35baeb0e6e63c95f2b32dc4aba78d59045a8b4ce (diff) |
fix sign extension bug that broke meta key support
from sra@hactrn.net
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/mg/ttyio.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/mg/ttyio.c b/usr.bin/mg/ttyio.c index c569f5863ff..4ea9f0e3ab7 100644 --- a/usr.bin/mg/ttyio.c +++ b/usr.bin/mg/ttyio.c @@ -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 @@ ttgetc(void) } else if (ret == 1) break; } while (1); - return ((int) c); + return ((int) c) & 0xFF; } /* |