diff options
author | 2003-12-04 01:37:28 +0000 | |
---|---|---|
committer | 2003-12-04 01:37:28 +0000 | |
commit | 8b14afe2ef1df7bc1cea8c0dc4e4932bc1db6bd6 (patch) | |
tree | b7c752d1b7d63712054d41461c0b9198d1f2fd4a | |
parent | Need to do "ifconfig create" for bridge interfaces too. (diff) | |
download | wireguard-openbsd-8b14afe2ef1df7bc1cea8c0dc4e4932bc1db6bd6.tar.xz wireguard-openbsd-8b14afe2ef1df7bc1cea8c0dc4e4932bc1db6bd6.zip |
fix sign extension bug that broke meta key support
from sra@hactrn.net
-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; } /* |