summaryrefslogtreecommitdiff
path: root/pith/send.c
diff options
context:
space:
mode:
authorEduardo Chappa <chappa@washington.edu>2020-06-08 02:42:47 -0600
committerEduardo Chappa <chappa@washington.edu>2020-06-08 02:42:47 -0600
commita340c0ecbfb80335b11bd5d5c50d130ba86b2812 (patch)
tree5edde7926ffcde8682a799c5aae481cc103f0535 /pith/send.c
parent6f8c0fcdeb457d11ea80cc3e04d4c4e0bbe4ed98 (diff)
downloadalpine-a340c0ecbfb80335b11bd5d5c50d130ba86b2812.tar.xz
* Remove some compilation warnings given by gcc9.
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 a0585edf..39295a9e 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", 2);
+ strncat(tmp, "\015\012", sizeof(tmp) - strlen(tmp));
#endif
if(lmc.so && !lmc.all_written){
so_puts(lmc.so, t);