1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-16 00:00:07 +01:00

Fixed erroneous byte count reported by libwebsocket_write()

This commit is contained in:
Niall T. Davidson 2013-06-10 22:09:16 +01:00
parent 0c9563bbd2
commit fc0a34ad8f

View file

@ -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(