From 3bd58106efb22b78e6fbabe9307880338ae92746 Mon Sep 17 00:00:00 2001 From: bertrand Date: Wed, 9 Feb 2000 20:35:35 +0000 Subject: various typo fixes in the ctree construction. 2000-02-09 bertrand * tests/ui-tests/message-browser.c: various typo fixes in the ctree construction. * camel/string-utils.c (string_trim): fix braindead trailing trim bug. * camel/gmime-content-field.c (gmime_content_field_construct_from_string): strip the leading and trailing quotes when constructing the content field. This should be done in a more generic RFC822 approach, but this fixes a bug that prevent matt from analysing some multipart messages. * camel/camel-data-wrapper.h: reorganize the deprecated and new methods. * camel/providers/mbox/camel-mbox-folder.c (_check_get_or_maybe_generate_summary_file): Use "From " as the message separating string. * camel/providers/mbox/camel-mbox-folder.c (_append_message): set the mode when creating the mbox file. * camel/providers/mbox/camel-mbox-utils.c (camel_mbox_write_xev): ditto * camel/providers/mbox/camel-mbox-summary.c (camel_mbox_save_summary): ditto svn path=/trunk/; revision=1711 --- camel/string-utils.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'camel/string-utils.c') diff --git a/camel/string-utils.c b/camel/string-utils.c index 3f9ce4805d..7cd9e97af0 100644 --- a/camel/string-utils.c +++ b/camel/string-utils.c @@ -245,7 +245,8 @@ string_trim (gchar *string, const gchar *trim_chars, StringTrimOption options) string, first_ok, last_ok); if (first_ok > 0) - memmove (string, string+first_ok, last_ok - first_ok +2); + memmove (string, string+first_ok, last_ok - first_ok + 1); + string[last_ok - first_ok +1] = '\0'; } -- cgit v1.2.3