diff options
author | Not Zed <NotZed@HelixCode.com> | 2000-11-17 14:04:23 +0800 |
---|---|---|
committer | Michael Zucci <zucchi@src.gnome.org> | 2000-11-17 14:04:23 +0800 |
commit | a1ccc43fbe30d1e68a668accf9759a19edec2d96 (patch) | |
tree | 41a15d30db57f1ba10cc90df6090a7997eafe9fc /camel/camel-stream-buffer.c | |
parent | 4db080e17f7f6637cf184a84d3e07a97b6e6904a (diff) | |
download | gsoc2013-evolution-a1ccc43fbe30d1e68a668accf9759a19edec2d96.tar.gz gsoc2013-evolution-a1ccc43fbe30d1e68a668accf9759a19edec2d96.tar.zst gsoc2013-evolution-a1ccc43fbe30d1e68a668accf9759a19edec2d96.zip |
We should always terminate the string. No need to check outptr is in
2000-11-17 Not Zed <NotZed@HelixCode.com>
* camel-stream-buffer.c (camel_stream_buffer_gets): We should
always terminate the string. No need to check outptr is in range,
its already been checked.
* providers/local/camel-mbox-summary.c (mbox_summary_sync): When
we update the summary, do it from mbox_summary->folder_size, not
the content info endpos (which isn't any good anymore anyway).
* providers/local/camel-mbox-folder.c (mbox_append_message): Set
the frompos from the current folder size, since summary_add wont
have initialised it to anything useful.
svn path=/trunk/; revision=6597
Diffstat (limited to 'camel/camel-stream-buffer.c')
-rw-r--r-- | camel/camel-stream-buffer.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/camel/camel-stream-buffer.c b/camel/camel-stream-buffer.c index c25cda09bc..26d7d3197a 100644 --- a/camel/camel-stream-buffer.c +++ b/camel/camel-stream-buffer.c @@ -395,8 +395,7 @@ int camel_stream_buffer_gets(CamelStreamBuffer *sbf, char *buf, unsigned int max } while (bytes_read>0); sbf->ptr = inptr; - if (outptr <= outend) - *outptr = 0; + *outptr = 0; return (int)(outptr - buf); } |