From 9f6c9f9e1dad0fd03722e6dddf3a25e63c8a1f9d Mon Sep 17 00:00:00 2001 From: Not Zed Date: Thu, 11 Apr 2002 09:00:57 +0000 Subject: If the last message(s) were deleted, and we had any messages output, 2002-04-11 Not Zed * providers/local/camel-spool-summary.c (spool_summary_sync_full): If the last message(s) were deleted, and we had any messages output, account for the lost \n of the following From line by adding an extra \n. fix for #8214. 2002-04-10 Not Zed * camel-mime-part-utils.c (convert_buffer): If we get a 0 length input, return a 0 lenght output as valid - fixes bugs with some iconv impl and its simpler anyway. svn path=/trunk/; revision=16438 --- camel/camel-mime-part-utils.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'camel/camel-mime-part-utils.c') diff --git a/camel/camel-mime-part-utils.c b/camel/camel-mime-part-utils.c index 0d79c02e9a..987e5e77d7 100644 --- a/camel/camel-mime-part-utils.c +++ b/camel/camel-mime-part-utils.c @@ -108,6 +108,9 @@ convert_buffer (GByteArray *in, const char *to, const char *from) char *outbuf; iconv_t cd; + if (in->len == 0) + return g_byte_array_new(); + d(printf("converting buffer from %s to %s: '%.*s'\n", from, to, (int)in->len, in->data)); cd = e_iconv_open(to, from); -- cgit v1.2.3