diff --git a/sys/i386/isa/pcvt/pcvt_drv.c b/sys/i386/isa/pcvt/pcvt_drv.c index 10e14b733f15..5ff22b7d4551 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 */