diff options
-rw-r--r-- | sys/i386/isa/pcvt/pcvt_drv.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/i386/isa/pcvt/pcvt_drv.c b/sys/i386/isa/pcvt/pcvt_drv.c index 10e14b7..5ff22b7 100644 --- a/sys/i386/isa/pcvt/pcvt_drv.c +++ b/sys/i386/isa/pcvt/pcvt_drv.c @@ -1204,7 +1204,7 @@ pccncheckc(Dev_t dev) cp = sgetc(1); kbd_polling = 0; splx(x); - return (cp != 0); /* did someone press the "Any" key? */ + return (cp == NULL ? -1 : *cp); } #endif /* PCVT_FREEBSD >= 200 */ |