From: Christoph Hohmann Date: Sat, 20 Sep 2003 18:20:25 +0000 (+0000) Subject: 0.9.5claws22 X-Git-Tag: ch_branch_last_merge~18 X-Git-Url: http://git.claws-mail.org/?p=claws.git;a=commitdiff_plain;h=d89be065cf80dbc365e9dc2d6746607c12743015 0.9.5claws22 * src/compose.c add extra space for address code conversion (4 * unconvered size could be too small for short headers) --- diff --git a/ChangeLog.claws b/ChangeLog.claws index 9fe387989..2cbcf0d90 100644 --- a/ChangeLog.claws +++ b/ChangeLog.claws @@ -1,3 +1,9 @@ +2003-09-20 [christoph] 0.9.5claws22 + + * src/compose.c + add extra space for address code conversion + (4 * unconvered size could be too small for short headers) + 2003-09-20 [christoph] 0.9.5claws21 * src/compose.c diff --git a/configure.ac b/configure.ac index ab5cad07e..d1fe15876 100644 --- a/configure.ac +++ b/configure.ac @@ -11,7 +11,7 @@ MINOR_VERSION=9 MICRO_VERSION=5 INTERFACE_AGE=0 BINARY_AGE=0 -EXTRA_VERSION=21 +EXTRA_VERSION=22 if test $EXTRA_VERSION -eq 0; then VERSION=${MAJOR_VERSION}.${MINOR_VERSION}.${MICRO_VERSION}claws else diff --git a/src/compose.c b/src/compose.c index 43ff0dc8e..dc100b6d9 100644 --- a/src/compose.c +++ b/src/compose.c @@ -4072,9 +4072,9 @@ static gint compose_write_headers_from_headerlist(Compose *compose, if (write_header) { gchar *buf; - buf = g_new0(gchar, headerstr->len * 4); + buf = g_new0(gchar, headerstr->len * 4 + 256); compose_convert_header - (buf, headerstr->len * 4, headerstr->str, + (buf, headerstr->len * 4 + 256, headerstr->str, strlen(header) + 2, TRUE); fprintf(fp, "%s: %s\n", header, buf); g_free(buf);