fix for message sending

This commit is contained in:
Andrew Pamment 2018-10-13 20:14:31 +10:00
parent 0cbefa834f
commit 0ade566c11

View File

@ -516,8 +516,10 @@ char *external_editor(struct user_record *user, char *to, char *from, char *quot
} }
if (user->autosig) { if (user->autosig) {
body2 = (char *)malloz(totlen + 3 + strlen(buffer) + strlen(user->signature)); body2 = (char *)malloz(totlen + 3 + strlen(buffer) + strlen(user->signature));
totlen += strlen(buffer) + strlen(user->signature) + 3;
} else { } else {
body2 = (char *)malloz(totlen + 2 + strlen(buffer)); body2 = (char *)malloz(totlen + 2 + strlen(buffer));
totlen += strlen(buffer) + 2;
} }
} else { } else {
body2 = (char *)malloz(totlen + 1); body2 = (char *)malloz(totlen + 1);