summaryrefslogtreecommitdiff
path: root/pith/send.c
diff options
context:
space:
mode:
Diffstat (limited to 'pith/send.c')
-rw-r--r--pith/send.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pith/send.c b/pith/send.c
index 39295a9e..80db83f8 100644
--- a/pith/send.c
+++ b/pith/send.c
@@ -4297,7 +4297,7 @@ pine_rfc822_output_body(struct mail_bodystruct *body, soutr_t f, void *s)
#ifdef SMIME
if(ps_global->smime && ps_global->smime->do_sign
&& strlen(tmp) < sizeof(tmp)-2)
- strncat(tmp, "\015\012", sizeof(tmp) - strlen(tmp));
+ strncat(tmp, "\015\012", sizeof(tmp) - strlen(tmp) - 1);
#endif
if(lmc.so && !lmc.all_written){
so_puts(lmc.so, t);