From a1ccc43fbe30d1e68a668accf9759a19edec2d96 Mon Sep 17 00:00:00 2001 From: Not Zed Date: Fri, 17 Nov 2000 06:04:23 +0000 Subject: We should always terminate the string. No need to check outptr is in 2000-11-17 Not Zed * 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 --- camel/providers/local/camel-mbox-summary.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'camel/providers/local/camel-mbox-summary.c') diff --git a/camel/providers/local/camel-mbox-summary.c b/camel/providers/local/camel-mbox-summary.c index 32bf411fc6..adff872cc4 100644 --- a/camel/providers/local/camel-mbox-summary.c +++ b/camel/providers/local/camel-mbox-summary.c @@ -587,13 +587,7 @@ mbox_summary_sync(CamelLocalSummary *cls, gboolean expunge, CamelFolderChangeInf char *fromline; /* make sure we're in sync, after this point we at least have a complete list of id's */ - count = camel_folder_summary_count (s); - if (count > 0) { - CamelMessageInfo *mi = camel_folder_summary_index(s, count - 1); - summary_update(mbs, mi->content->endpos, changeinfo, ex); - } else { - summary_update(mbs, 0, changeinfo, ex); - } + summary_update(mbs, mbs->folder_size, changeinfo, ex); if (camel_exception_is_set(ex)) return -1; -- cgit v1.2.3