commit cead472b5459276d3e93b70243a1cb6e77f21b0a
Author: Mattias Andrée <maandree_AT_kth.se>
AuthorDate: Tue May 9 07:36:29 2017 +0200
Commit: Mattias Andrée <maandree_AT_kth.se>
CommitDate: Tue May 9 07:36:29 2017 +0200
Fix bug in readall, thanks to Jean-Louis Fuchs
Signed-off-by: Mattias Andrée <maandree_AT_kth.se>
diff --git a/src/util.c b/src/util.c
index 95f714b..715ce4e 100644
--- a/src/util.c
+++ b/src/util.c
_AT_@ -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;
}
Received on Tue May 09 2017 - 07:36:39 CEST
This archive was generated by hypermail 2.3.0
: Tue May 09 2017 - 07:48:16 CEST