diff options
Diffstat (limited to 'common.c')
-rw-r--r-- | common.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -317,7 +317,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); |