aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2023-07-09 23:39:01 +0200
committerEgor Tensin <Egor.Tensin@gmail.com>2023-07-10 01:15:28 +0200
commit1823a58d64bad9977237074e38edfde0f91adf36 (patch)
tree9914b47d0394ce2a1e625258b64fa60ecfa27f79 /src
parenttest: prettier test names (diff)
downloadcimple-1823a58d64bad9977237074e38edfde0f91adf36.tar.gz
cimple-1823a58d64bad9977237074e38edfde0f91adf36.zip
test: test long CI run output
It immediately exposed a horrible bug in net.c, which is now fixed.
Diffstat (limited to 'src')
-rw-r--r--src/net.c2
1 files changed, 1 insertions, 1 deletions
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;