aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2017-05-09 07:36:29 +0200
committerMattias Andrée <maandree@kth.se>2017-05-09 07:36:29 +0200
commitcead472b5459276d3e93b70243a1cb6e77f21b0a (patch)
treedff31723f9414f2d746176aba5b2ae73dcc94435 /src
parentImprove performance of blind-convert (diff)
downloadblind-cead472b5459276d3e93b70243a1cb6e77f21b0a.tar.gz
blind-cead472b5459276d3e93b70243a1cb6e77f21b0a.tar.bz2
blind-cead472b5459276d3e93b70243a1cb6e77f21b0a.tar.xz
Fix bug in readall, thanks to Jean-Louis Fuchs
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'src')
-rw-r--r--src/util.c2
1 files changed, 1 insertions, 1 deletions
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;
}