[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libmicrohttpd] 04/05: internal.h: fixed doxy for read buffer
From: |
gnunet |
Subject: |
[libmicrohttpd] 04/05: internal.h: fixed doxy for read buffer |
Date: |
Sun, 17 Oct 2021 16:31:57 +0200 |
This is an automated email from the git hooks/post-receive script.
karlson2k pushed a commit to branch master
in repository libmicrohttpd.
commit 44b342f7ca7469f30df44c07936170e7635da149
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
AuthorDate: Sun Oct 17 16:29:05 2021 +0300
internal.h: fixed doxy for read buffer
MHD always zero-terminate by replacing end-of-line chars and never
zero-terminate by
write char after valid read position. Read buffer is NOT longer.
'read_buffer_offset' actually determines the first INVALID position.
---
src/microhttpd/internal.h | 11 +++++------
1 file changed, 5 insertions(+), 6 deletions(-)
diff --git a/src/microhttpd/internal.h b/src/microhttpd/internal.h
index ab5d948c..0a6ba032 100644
--- a/src/microhttpd/internal.h
+++ b/src/microhttpd/internal.h
@@ -1072,16 +1072,15 @@ struct MHD_Connection
#endif
/**
- * Size of @e read_buffer (in bytes). This value indicates
- * how many bytes we're willing to read into the buffer;
- * the real buffer is one byte longer to allow for
- * adding zero-termination (when needed).
+ * Size of @e read_buffer (in bytes).
+ * This value indicates how many bytes we're willing to read
+ * into the buffer.
*/
size_t read_buffer_size;
/**
- * Position where we currently append data in
- * @e read_buffer (last valid position).
+ * Position where we currently append data in @e read_buffer (the
+ * next char after the last valid position).
*/
size_t read_buffer_offset;
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
- [libmicrohttpd] branch master updated (746dae6a -> 381f2705), gnunet, 2021/10/17
- [libmicrohttpd] 02/05: Removed leftover after 3a02f18ca6a66997614cebf1231c86ad33148ad2, gnunet, 2021/10/17
- [libmicrohttpd] 01/05: get_next_header_line(): improved and fixed comments, gnunet, 2021/10/17
- [libmicrohttpd] 03/05: Fixed parsing of bare CR as end-of-line in HTTP headers, gnunet, 2021/10/17
- [libmicrohttpd] 05/05: Fixed parsing of "\r\r", "\r", "\n\r" and "\n\n" as a single linefeed for chunked upload, gnunet, 2021/10/17
- [libmicrohttpd] 04/05: internal.h: fixed doxy for read buffer,
gnunet <=