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 | |
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.
-rw-r--r-- | pith/pine.hlp | 2 | ||||
-rw-r--r-- | pith/reply.c | 5 |
2 files changed, 3 insertions, 4 deletions
diff --git a/pith/pine.hlp b/pith/pine.hlp index dd1265a5..2b865435 100644 --- a/pith/pine.hlp +++ b/pith/pine.hlp @@ -140,7 +140,7 @@ with help text for the config screen and the composer that didn't have any reasonable place to be called from. Dummy change to get revision in pine.hlp ============= h_revision ================= -Alpine Commit 586 2021-08-31 23:49:55 +Alpine Commit 587 2021-09-07 08:43:39 ============= h_news ================= <HTML> <HEAD> 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); } |