aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2022-03-25 17:07:44 +0100
committerMattias Andrée <maandree@kth.se>2022-03-25 17:07:44 +0100
commitf3c3f5f0c28320d638e988caf6a02abd1e2c70a4 (patch)
tree7e130ceb43826f573514367a0475745f42fa1503
parentRemove unnecessary call to close (diff)
downloadsha3sum-f3c3f5f0c28320d638e988caf6a02abd1e2c70a4.tar.gz
sha3sum-f3c3f5f0c28320d638e988caf6a02abd1e2c70a4.tar.bz2
sha3sum-f3c3f5f0c28320d638e988caf6a02abd1e2c70a4.tar.xz
Style fix
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-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)