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); }