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

This commit is contained in:
Jake Burkholder 2002-02-23 04:33:15 +00:00
parent c2ef11f244
commit 23b93fc323
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=91113

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;
}