This is an automated email from the ASF dual-hosted git repository. xiaoxiang pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx-apps.git
The following commit(s) were added to refs/heads/master by this push: new 0fc0cb288 Thttpd Fix: wrong calc offset 0fc0cb288 is described below commit 0fc0cb2888c7f8a4cfc89e3649bdf693bb859115 Author: Alexey Matveev <tip...@yandex.ru> AuthorDate: Sun Sep 8 21:34:31 2024 +0300 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); }