From f3c3f5f0c28320d638e988caf6a02abd1e2c70a4 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Fri, 25 Mar 2022 17:07:44 +0100 Subject: Style fix MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- cgit v1.2.3-70-g09d2