From be76642c9ee65b91412818260088b719dfe5cf3e Mon Sep 17 00:00:00 2001 From: "Niall T. Davidson" Date: Mon, 10 Jun 2013 22:09:16 +0100 Subject: [PATCH] Fixed erroneous byte count reported by libwebsocket_write() --- lib/output.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(