diff options
Diffstat (limited to '')
| -rw-r--r-- | benchmark.c | 2 |
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); |
