summaryrefslogtreecommitdiff
path: root/alpine/send.c
diff options
context:
space:
mode:
authorEduardo Chappa <chappa@washington.edu>2018-05-13 01:38:56 -0600
committerEduardo Chappa <chappa@washington.edu>2018-05-13 01:38:56 -0600
commitaac7b10863bcfabe936feb5151e7e11123e13306 (patch)
tree8033a31daed6c94fcbdd41eef1682ba0539cfabd /alpine/send.c
parent400647dcc1b040f82d22d539fc013f5e23132049 (diff)
downloadalpine-aac7b10863bcfabe936feb5151e7e11123e13306.tar.xz
* More changes to make Valgrind happy. Work in progress.
Diffstat (limited to 'alpine/send.c')
-rw-r--r--alpine/send.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/alpine/send.c b/alpine/send.c
index c7763bfd..496824f4 100644
--- a/alpine/send.c
+++ b/alpine/send.c
@@ -2170,9 +2170,7 @@ pine_send(ENVELOPE *outgoing, struct mail_bodystruct **body,
pf->name = cpystr(pf_template[index].name);
if(index == N_SENDER && F_ON(F_USE_SENDER_NOT_X, ps_global))
/* slide string over so it is Sender instead of X-X-Sender */
- for(p=pf->name; *(p+1); p++)
- *p = *(p+4);
-
+ memmove(pf->name, pf->name+4, strlen(pf->name)-4+1);
pf->type = pf_template[index].type;
pf->canedit = pf_template[index].canedit;
pf->rcptto = pf_template[index].rcptto;