Thttpd Fix: wrong calc offset

This commit is contained in:
Alexey Matveev 2024-09-08 21:34:31 +03:00 committed by Xiang Xiao
parent f4d21b0360
commit 0fc0cb2888

View file

@ -473,7 +473,7 @@ static void handle_send(struct connect_s *conn, struct timeval *tv)
/* And update how much of the file we wrote */
conn->offset += nwritten;
conn->offset += nread;
conn->hc->bytes_sent += nwritten;
ninfo("Wrote %d bytes\n", nwritten);
}