From 0fc0cb2888c7f8a4cfc89e3649bdf693bb859115 Mon Sep 17 00:00:00 2001 From: Alexey Matveev Date: Sun, 8 Sep 2024 21:34:31 +0300 Subject: [PATCH] Thttpd Fix: wrong calc offset --- netutils/thttpd/thttpd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/netutils/thttpd/thttpd.c b/netutils/thttpd/thttpd.c index 6fe961c8d..8ebf0bc40 100644 --- a/netutils/thttpd/thttpd.c +++ b/netutils/thttpd/thttpd.c @@ -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); }