diff options
author | Eduardo Chappa <chappa@washington.edu> | 2015-07-26 23:36:30 -0600 |
---|---|---|
committer | Eduardo Chappa <chappa@washington.edu> | 2015-07-26 23:36:30 -0600 |
commit | 2695b63fbe6c6a2206a2637137c6cd654f69943a (patch) | |
tree | 717008efdac9ae66bf33985dc99ee68aea45bf11 /pith/stream.c | |
parent | 36b77661542a63c4579943951d143c8cc9c99460 (diff) | |
download | alpine-2695b63fbe6c6a2206a2637137c6cd654f69943a.tar.xz |
* Clear even more warnings from clang 3.5 and MAC OSX.
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 |