Fix test for != 0 that should be > 0.

This commit is contained in:
jake 2002-02-23 04:33:15 +00:00
parent e187f56a06
commit 8f643f6169

View File

@ -115,7 +115,7 @@ ofw_cons_poll()
if (saved_char != -1)
return 1;
if (OF_read(stdin, &ch, 1) != 0) {
if (OF_read(stdin, &ch, 1) > 0) {
saved_char = ch;
return 1;
}