aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2017-07-03 22:45:55 +0200
committerMattias Andrée <maandree@kth.se>2017-07-03 22:45:55 +0200
commit969d96f8f5b66c43027422ed6a10dd02db53f1dc (patch)
treeea95eed532a3e674ed7277db1b6708210dbe94a6 /src
parentupdate todo (diff)
downloadblind-969d96f8f5b66c43027422ed6a10dd02db53f1dc.tar.gz
blind-969d96f8f5b66c43027422ed6a10dd02db53f1dc.tar.bz2
blind-969d96f8f5b66c43027422ed6a10dd02db53f1dc.tar.xz
Fix return value of readall
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'src')
-rw-r--r--src/util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util.c b/src/util.c
index e4544ca..7746adb 100644
--- a/src/util.c
+++ b/src/util.c
@@ -122,7 +122,7 @@ readall(int fd, void *buf, size_t n)
break;
ptr += (size_t)r;
}
- return r;
+ return ptr;
}
int