commit cead472b5459276d3e93b70243a1cb6e77f21b0a
parent 4ff63fa07d63f27fef3583997b2c29188771dd6b
Author: Mattias Andrée <maandree@kth.se>
Date: Tue, 9 May 2017 07:36:29 +0200
Fix bug in readall, thanks to Jean-Louis Fuchs
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat:
| M | src/util.c | | | 2 | +- |
1 file changed, 1 insertion(+), 1 deletion(-)
diff --dropbox 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;
}