diff options
author | Eduardo Chappa <chappa@washington.edu> | 2021-09-07 08:43:42 -0600 |
---|---|---|
committer | Eduardo Chappa <chappa@washington.edu> | 2021-09-07 08:43:42 -0600 |
commit | 68ac2c9a0ed6d3b0aa1f14c1b5efc9a44e9d871f (patch) | |
tree | 8aa7ade8f1840aecc033751155b9121734770279 /pith/reply.c | |
parent | 5134680dbcb371a063797f8a322a22b23cf6f12b (diff) | |
download | alpine-68ac2c9a0ed6d3b0aa1f14c1b5efc9a44e9d871f.tar.xz |
* Forwarding did not append the (fwd) suffix to the subject. Bug introduced
in commit 8167f58e118afa658590253f8696c816511c3708 while fixing warnings
given by gcc-10. Reported by Holger Trapp.
Diffstat (limited to 'pith/reply.c')
-rw-r--r-- | pith/reply.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/pith/reply.c b/pith/reply.c index 92172c05..deffc6fe 100644 --- a/pith/reply.c +++ b/pith/reply.c @@ -2329,12 +2329,11 @@ forward_subject(ENVELOPE *env, int flags) tmp_20k_buf[SIZEOF_20KBUF-1] = '\0'; removing_trailing_white_space(tmp_20k_buf); - if((l = strlen(tmp_20k_buf)) < 1000 && - (l < 5 || strcmp(tmp_20k_buf+l-5,"(fwd)"))){ + l = strlen(tmp_20k_buf); + if(l < 5 || strcmp(tmp_20k_buf+l-5,"(fwd)")){ char *s = cpystr(tmp_20k_buf); snprintf(tmp_20k_buf, SIZEOF_20KBUF, "%.1000s (fwd)", s); tmp_20k_buf[SIZEOF_20KBUF-1] = '\0'; - strcpy(tmp_20k_buf, s); fs_give((void **) &s); } |