commit cead472b5459276d3e93b70243a1cb6e77f21b0a
Author:     Mattias Andrée <[email protected]>
AuthorDate: Tue May 9 07:36:29 2017 +0200
Commit:     Mattias Andrée <[email protected]>
CommitDate: Tue May 9 07:36:29 2017 +0200

    Fix bug in readall, thanks to Jean-Louis Fuchs
    
    Signed-off-by: Mattias Andrée <[email protected]>

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;
 }

Reply via email to