From 969d96f8f5b66c43027422ed6a10dd02db53f1dc Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Mon, 3 Jul 2017 22:45:55 +0200 Subject: Fix return value of readall MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/util.c') 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 -- cgit v1.2.3-70-g09d2