aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-stream-buffer.c
diff options
context:
space:
mode:
authorDan Winship <danw@src.gnome.org>2000-12-22 01:14:07 +0800
committerDan Winship <danw@src.gnome.org>2000-12-22 01:14:07 +0800
commitd812b5e3315cedafbd359b2c4b06c6bcccd951ac (patch)
treef4785ce50943aab10506bfa79902b66f98afc8a2 /camel/camel-stream-buffer.c
parentd2a8b907f899ac4751b24f15d7c3d99b1756e075 (diff)
downloadgsoc2013-evolution-d812b5e3315cedafbd359b2c4b06c6bcccd951ac.tar
gsoc2013-evolution-d812b5e3315cedafbd359b2c4b06c6bcccd951ac.tar.gz
gsoc2013-evolution-d812b5e3315cedafbd359b2c4b06c6bcccd951ac.tar.bz2
gsoc2013-evolution-d812b5e3315cedafbd359b2c4b06c6bcccd951ac.tar.lz
gsoc2013-evolution-d812b5e3315cedafbd359b2c4b06c6bcccd951ac.tar.xz
gsoc2013-evolution-d812b5e3315cedafbd359b2c4b06c6bcccd951ac.tar.zst
gsoc2013-evolution-d812b5e3315cedafbd359b2c4b06c6bcccd951ac.zip
Update the doc comment: since it always NUL-terminates the buffer, it
* camel-stream-buffer.c (camel_stream_buffer_gets): Update the doc comment: since it always NUL-terminates the buffer, it reads at most @max-1 bytes, not @max. * camel-remote-store.c (remote_recv_line): Fix the "did camel_stream_buffer_gets fill the whole buffer" check. Fixes a bug when reading lines longer than 1024 characters (eg, IMAP SEARCH responses in very large folders). svn path=/trunk/; revision=7117
Diffstat (limited to 'camel/camel-stream-buffer.c')
-rw-r--r--camel/camel-stream-buffer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/camel/camel-stream-buffer.c b/camel/camel-stream-buffer.c
index dd5f0bc287..7df9fa30ee 100644
--- a/camel/camel-stream-buffer.c
+++ b/camel/camel-stream-buffer.c
@@ -357,7 +357,7 @@ stream_eos (CamelStream *stream)
* @max: Maxmimum number of characters to store.
*
* Read a line of characters up to the next newline character or
- * @max characters.
+ * @max-1 characters.
*
* If the newline character is encountered, then it will be
* included in the buffer @buf. The buffer will be #NUL terminated.