talons

Fork of Claws Mail https://www.claws-mail
Log | Files | Refs | README | LICENSE

commit 18292e3bbdb1c1cf3da8ad4c4a0edaa4f9c048c7
parent 8c8e1a90e794a019a9fe3f8c32255efa51583274
Author: Charles Lehner <charles@claws-mail.org>
Date:   Mon, 27 Jun 2016 10:28:41 -0400

Handle ical lines longer than 256 bytes

Diffstat:
Msrc/plugins/vcalendar/vcal_manager.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/plugins/vcalendar/vcal_manager.c b/src/plugins/vcalendar/vcal_manager.c @@ -729,9 +729,9 @@ gchar *vcal_manager_icalevent_dump(icalcomponent *event, gchar *orga, icalcompon /* encode to quoted-printable */ while (lines[i]) { - gchar buf[256]; gint e_len = strlen(qpbody), n_len = 0; gchar *outline = conv_codeset_strdup(lines[i], CS_UTF_8, conv_get_outgoing_charset_str()); + gchar buf[strlen(outline)*8]; qp_encode_line(buf, (guchar *)outline); n_len = strlen(buf);