diff options
Diffstat (limited to 'pith/stream.c')
-rw-r--r-- | pith/stream.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pith/stream.c b/pith/stream.c index 5cce21ce..3c4923b1 100644 --- a/pith/stream.c +++ b/pith/stream.c @@ -1909,9 +1909,9 @@ mail_list_internal(MAILSTREAM *s, char *r, char *p) && ((s && s->mailbox && *s->mailbox == '{') || (!s && ((r && *r == '{') || (p && *p == '{'))))){ char tmp[2*MAILTMPLEN]; - - snprintf(tmp, sizeof(tmp), "%.*s%.*s", sizeof(tmp)/2-1, r ? r : "", - sizeof(tmp)/2-1, p); + /* MAILTMPLEN = sizeof(tmp)/2 */ + snprintf(tmp, sizeof(tmp), "%.*s%.*s", MAILTMPLEN-1, r ? r : "", + MAILTMPLEN-1, p); mail_list(s, "", tmp); } else |