aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common.c b/common.c
index ebda81d..5f2f83e 100644
--- a/common.c
+++ b/common.c
@@ -319,7 +319,7 @@ check_checksums(const char *restrict filename, const struct libkeccak_spec *rest
buf = emalloc(size);
for (;;) {
- if (ptr + blksize < size)
+ if (ptr + blksize > size)
buf = erealloc(buf, size <<= 1);
got = read(fd, buf + ptr, blksize);