summaryrefslogtreecommitdiff
path: root/sys/src/cmd/rio/rio.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/src/cmd/rio/rio.c')
-rw-r--r--sys/src/cmd/rio/rio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/src/cmd/rio/rio.c b/sys/src/cmd/rio/rio.c
index 6912bbb0a..682512bee 100644
--- a/sys/src/cmd/rio/rio.c
+++ b/sys/src/cmd/rio/rio.c
@@ -1232,7 +1232,7 @@ kbdproc(void *arg)
Rune r;
e = buf + sizeof(buf);
- if((n = read(fd, p, e-p)) <= 0)
+ if((n = read(fd, p, e-p)) < 0)
break;
e = p + n;
while(p < e && fullrune(p, e - p)){