From ff1e9434900078487b2cbca75ac7ce05911e7434 Mon Sep 17 00:00:00 2001 From: Andrew Pamment Date: Tue, 29 Mar 2016 14:34:03 +1000 Subject: [PATCH] Fix taglines --- mail_menu.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/mail_menu.c b/mail_menu.c index b04455f..30fe5b9 100644 --- a/mail_menu.c +++ b/mail_menu.c @@ -86,7 +86,7 @@ char *editor(int socket, struct user_record *user, char *quote, char *from) { tagline = conf.default_tagline; } - size += 7; + size += 18; size += strlen(tagline); msg = (char *)malloc(size); @@ -96,9 +96,9 @@ char *editor(int socket, struct user_record *user, char *quote, char *from) { strcat(msg, "\r"); free(content[i]); } - strcat(msg, "\r---\r"); - strcat(msg, tagline); - strcat(msg, "\r"); + + sprintf(buffer, "\r---\r * Origin: %s \r", tagline); + strcat(msg, buffer); free(content); if (quote != NULL) {