aboutsummaryrefslogtreecommitdiffstats
path: root/composer/e-msg-composer.c
diff options
context:
space:
mode:
Diffstat (limited to 'composer/e-msg-composer.c')
-rw-r--r--composer/e-msg-composer.c16
1 files changed, 9 insertions, 7 deletions
diff --git a/composer/e-msg-composer.c b/composer/e-msg-composer.c
index b91d6205fd..a399b47b26 100644
--- a/composer/e-msg-composer.c
+++ b/composer/e-msg-composer.c
@@ -1094,13 +1094,15 @@ set_editor_text(EMsgComposer *composer, const char *text, int setsig)
/* This copying bullshit is because the bonobo stream interface is just painful */
len = strlen(text);
- if (setsig
- && (sig = get_signature_html(composer))) {
- len += strlen(sig);
- content = mem = g_malloc(len+1);
- memcpy(mem, text, strlen(text));
- strcpy(mem + strlen(text), sig);
- g_free(sig);
+ if (setsig && (sig = get_signature_html (composer))) {
+ char *p;
+
+ len += strlen (sig) + 4;
+ content = p = mem = g_malloc (len + 1);
+ p = g_stpcpy (mem, text);
+ p = g_stpcpy (p, "<br>");
+ strcpy (p, sig);
+ g_free (sig);
} else {
content = text;
}