diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2023-07-09 23:39:01 +0200 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2023-07-10 01:15:28 +0200 |
commit | 1823a58d64bad9977237074e38edfde0f91adf36 (patch) | |
tree | 9914b47d0394ce2a1e625258b64fa60ecfa27f79 /src | |
parent | test: prettier test names (diff) | |
download | cimple-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 '')
-rw-r--r-- | src/net.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |