aboutsummaryrefslogtreecommitdiffstats
path: root/src/raw.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/raw.c')
-rw-r--r--src/raw.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/raw.c b/src/raw.c
index 4f4af5e..bd48355 100644
--- a/src/raw.c
+++ b/src/raw.c
@@ -10,6 +10,9 @@ static char rcsid[] = "$Id$";
/*
* $Log$
+ * Revision 1.9 2011/02/06 16:51:22 james
+ * *** empty log message ***
+ *
* Revision 1.8 2008/03/10 11:49:33 james
* *** empty log message ***
*
@@ -96,7 +99,7 @@ raw_terminal_read (TTY * _t, void *buf, int len)
red = wrap_read (t->rfd, buf, len);
if (red < 0)
- return -1;
+ return done ? done:-1;
if (!red)
return done;