From cead472b5459276d3e93b70243a1cb6e77f21b0a Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Tue, 9 May 2017 07:36:29 +0200 Subject: Fix bug in readall, thanks to Jean-Louis Fuchs 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(-) diff --git a/src/util.c b/src/util.c index 95f714b..715ce4e 100644 --- a/src/util.c +++ b/src/util.c @@ -133,7 +133,7 @@ readall(int fd, void *buf, size_t n) return -1; if (r == 0) break; - r += (size_t)r; + ptr += (size_t)r; } return r; } -- cgit v1.2.3-70-g09d2