aboutsummaryrefslogtreecommitdiff
path: root/safetitle.c
diff options
context:
space:
mode:
Diffstat (limited to 'safetitle.c')
-rw-r--r--safetitle.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/safetitle.c b/safetitle.c
index ee2a205..a926264 100644
--- a/safetitle.c
+++ b/safetitle.c
@@ -41,8 +41,8 @@ da(int fd, char *buf, int real)
read:
while(r = read(fd, &c, 1)){
- if(!r){
- fprintf(stderr, "bad terminal\n");
+ if(r==-1){
+ warn("read");
return -1;
}
buf[i++] = c;