0.9.5claws21
[claws.git] / src / compose.c
index 32515f6573051c7d7019d014e4f0662730a9bd5a..43ff0dc8efd6be8346c0cea4f2ad0c2ac2baaa7c 100644 (file)
@@ -4072,9 +4072,9 @@ static gint compose_write_headers_from_headerlist(Compose *compose,
        if (write_header) {
                gchar *buf;
 
-               buf = g_new0(gchar, headerstr->len * 2);
+               buf = g_new0(gchar, headerstr->len * 4);
                compose_convert_header
-                       (buf, headerstr->len * 2, headerstr->str,
+                       (buf, headerstr->len * 4, headerstr->str,
                        strlen(header) + 2, TRUE);
                fprintf(fp, "%s: %s\n", header, buf);
                g_free(buf);