diff --git a/lib/output.c b/lib/output.c index 224a0f27a..644eb71da 100644 --- a/lib/output.c +++ b/lib/output.c @@ -498,7 +498,7 @@ send_raw: if (n < 0) return n; - return orig_len - ((len - pre + post) -n ); + return orig_len - ((len + pre + post) -n ); } LWS_VISIBLE int libwebsockets_serve_http_file_fragment(