diff options
author | Not Zed <NotZed@Ximian.com> | 2002-07-24 23:13:43 +0800 |
---|---|---|
committer | Michael Zucci <zucchi@src.gnome.org> | 2002-07-24 23:13:43 +0800 |
commit | 9fcbc8f335c4322c6e4167e0356bfb9802e5edb6 (patch) | |
tree | 86ad5969e40e256b8bedc65b813c9563c14cf40a /camel/camel-mime-utils.c | |
parent | 710ba7ca95b2fec221f7d0fd861e7f1d803aabec (diff) | |
download | gsoc2013-evolution-9fcbc8f335c4322c6e4167e0356bfb9802e5edb6.tar.gz gsoc2013-evolution-9fcbc8f335c4322c6e4167e0356bfb9802e5edb6.tar.zst gsoc2013-evolution-9fcbc8f335c4322c6e4167e0356bfb9802e5edb6.zip |
When writing the summary, use TRUNC flag, duh. Also, write to a temp file
2002-07-25 Not Zed <NotZed@Ximian.com>
* camel-folder-summary.c (camel_folder_summary_save): When writing
the summary, use TRUNC flag, duh. Also, write to a temp file
first, and rename when closed successfully, and check ferror() and
fclose() against 0 rather than -1.
* providers/local/camel-mbox-summary.c (summary_update): Decrement
i if we remove the summary item so we dont skip every 2nd one.
* camel-mime-utils.c (header_decode_mailbox): Use
rfc2047_decode_word explicitly incase we just found an encoded
word. Stops us re-decoding the string twice, which fixes memory
corruption in #26330 when the HUGE string is used later.
2002-07-24 Not Zed <NotZed@Ximian.com>
* camel-partition-table.c (camel_key_table_next): Didn't unlock if
we exited on an empty key list.
svn path=/trunk/; revision=17570
Diffstat (limited to 'camel/camel-mime-utils.c')
-rw-r--r-- | camel/camel-mime-utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/camel/camel-mime-utils.c b/camel/camel-mime-utils.c index 1f3c10cfc6..e594a43ed4 100644 --- a/camel/camel-mime-utils.c +++ b/camel/camel-mime-utils.c @@ -2487,7 +2487,7 @@ header_decode_mailbox(const char **in) g_free(text); /* or maybe that we've added up a bunch of broken bits to make an encoded word */ - text = header_decode_string(name->str, NULL); + text = rfc2047_decode_word(name->str, name->len); if (text) { g_string_truncate(name, 0); g_string_append(name, text); |