summaryrefslogtreecommitdiff
path: root/pith/reply.c
diff options
context:
space:
mode:
authorEduardo Chappa <chappa@washington.edu>2021-05-08 21:01:02 -0600
committerEduardo Chappa <chappa@washington.edu>2021-05-08 21:01:02 -0600
commitb5eb45a153202d72aeb48de1149e7c74aef979fd (patch)
tree1fbc156a717e7963cd0c02fd7352bc801949c550 /pith/reply.c
parent2f953255a8c494e3033015eb064c6ecace9ffeda (diff)
downloadalpine-b5eb45a153202d72aeb48de1149e7c74aef979fd.tar.xz
* Clear out some gcc warnings, and code improvement. Work in progress.HEADmaster
Diffstat (limited to 'pith/reply.c')
-rw-r--r--pith/reply.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pith/reply.c b/pith/reply.c
index 49aaf33..636afa4 100644
--- a/pith/reply.c
+++ b/pith/reply.c
@@ -945,7 +945,7 @@ reply_body(MAILSTREAM *stream, ENVELOPE *env, struct mail_bodystruct *orig_body,
int impl, template_len = 0, leave_cursor_at_top = 0, reply_raw_body = 0;
if(sect_prefix) /* SECTBUFLEN = sizeof(sect_buf) */
- snprintf(section = sect_buf, sizeof(sect_buf), "%.*s.1", SECTBUFLEN-1, sect_prefix);
+ snprintf(section = sect_buf, sizeof(sect_buf), "%.*s.1", SECTBUFLEN-3, sect_prefix);
else
section = "1";
@@ -3064,7 +3064,7 @@ partno(struct mail_bodystruct *body, struct mail_bodystruct *end_body)
num++; /* PARTTMPLEN = sizeof(tmp) */
if(&part->body == end_body || (p = partno(&part->body, end_body))){
snprintf(tmp, sizeof(tmp), "%d%s%.*s", num, (p) ? "." : "",
- PARTTMPLEN-10, (p) ? p : "");
+ PARTTMPLEN-12, (p) ? p : "");
tmp[sizeof(tmp)-1] = '\0';
if(p)
fs_give((void **)&p);