aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common.c b/common.c
index 86ac6aa..2052553 100644
--- a/common.c
+++ b/common.c
@@ -322,7 +322,7 @@ check_checksums(const char *restrict filename, const struct libkeccak_spec *rest
if (ptr + blksize > size)
buf = erealloc(buf, size <<= 1);
- got = read(fd, buf + ptr, blksize);
+ got = read(fd, &buf[ptr], blksize);
if (got < 0)
eperror();
if (!got)