commit 969d96f8f5b66c43027422ed6a10dd02db53f1dc Author: Mattias Andrée <maand...@kth.se> AuthorDate: Mon Jul 3 22:45:55 2017 +0200 Commit: Mattias Andrée <maand...@kth.se> CommitDate: Mon Jul 3 22:45:55 2017 +0200
Fix return value of readall Signed-off-by: Mattias Andrée <maand...@kth.se> 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