From d812b5e3315cedafbd359b2c4b06c6bcccd951ac Mon Sep 17 00:00:00 2001 From: Dan Winship Date: Thu, 21 Dec 2000 17:14:07 +0000 Subject: 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 --- camel/camel-stream-buffer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'camel/camel-stream-buffer.c') 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. -- cgit v1.2.3