From 1823a58d64bad9977237074e38edfde0f91adf36 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Sun, 9 Jul 2023 23:39:01 +0200 Subject: test: test long CI run output It immediately exposed a horrible bug in net.c, which is now fixed. --- src/net.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/net.c b/src/net.c index 1484cfb..7278218 100644 --- a/src/net.c +++ b/src/net.c @@ -188,7 +188,7 @@ int net_recv(int fd, void *buf, size_t size) ssize_t read_total = 0; while ((size_t)read_total < size) { - ssize_t read_now = read(fd, buf, size); + ssize_t read_now = read(fd, (unsigned char *)buf + read_total, size - read_total); if (!read_now) break; -- cgit v1.2.3