aboutsummaryrefslogtreecommitdiffstats
path: root/benchmark.c
diff options
context:
space:
mode:
authorMattias Andrée <m@maandree.se>2026-04-08 22:19:18 +0200
committerMattias Andrée <m@maandree.se>2026-04-08 22:19:24 +0200
commit78586cbaf677eedc741651c246f6ed79d24c560c (patch)
treea5578437219c4c662424a438fc590f31a301cda8 /benchmark.c
parentm fixes (diff)
downloadlibkeccak-78586cbaf677eedc741651c246f6ed79d24c560c.tar.gz
libkeccak-78586cbaf677eedc741651c246f6ed79d24c560c.tar.bz2
libkeccak-78586cbaf677eedc741651c246f6ed79d24c560c.tar.xz
benchmark.c: fix minor bugHEADmaster
Found by sitd2813 Signed-off-by: Mattias Andrée <m@maandree.se>
Diffstat (limited to 'benchmark.c')
-rw-r--r--benchmark.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/benchmark.c b/benchmark.c
index ef1a0d9..f67492d 100644
--- a/benchmark.c
+++ b/benchmark.c
@@ -79,7 +79,7 @@ main(void)
return 1;
}
for (ptr = 0; ptr < MESSAGE_LEN; ptr += (size_t)got) {
- got = read(fd, message, MESSAGE_LEN - ptr);
+ got = read(fd, &message[ptr], MESSAGE_LEN - ptr);
if (got <= 0) {
perror("read");
close(fd);