summaryrefslogtreecommitdiff
path: root/pico/attach.c
diff options
context:
space:
mode:
authorEduardo Chappa <chappa@washington.edu>2015-07-26 23:36:30 -0600
committerEduardo Chappa <chappa@washington.edu>2015-07-26 23:36:30 -0600
commit2695b63fbe6c6a2206a2637137c6cd654f69943a (patch)
tree717008efdac9ae66bf33985dc99ee68aea45bf11 /pico/attach.c
parent36b77661542a63c4579943951d143c8cc9c99460 (diff)
downloadalpine-2695b63fbe6c6a2206a2637137c6cd654f69943a.tar.xz
* Clear even more warnings from clang 3.5 and MAC OSX.
Diffstat (limited to 'pico/attach.c')
-rw-r--r--pico/attach.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/pico/attach.c b/pico/attach.c
index be4a9fbf..3a702729 100644
--- a/pico/attach.c
+++ b/pico/attach.c
@@ -170,7 +170,7 @@ AskAttach(char *cmnt, size_t cmntlen, LMLIST **lm)
? "."
: ((gmode & MDTREE) || opertree[0])
? opertree : gethomedir(NULL),
- C_FILESEP, p - fn, fn);
+ C_FILESEP, (int) (p - fn), fn);
}
else{
fname = fn;
@@ -1069,8 +1069,8 @@ process_tag: /* enclosed in [] */
* whole attachment, comment or done!
*/
if(c == ',' || c == '\0' || c == '\"'){
- strncpy(sz, (lblsz) ? lblsz : prettysz(attsz), sizeof(sz));
- sz[sizeof(sz)-1] = '\0';
+ strncpy(sz, (lblsz) ? lblsz : prettysz(attsz), szlen);
+ sz[szlen-1] = '\0';
snprintf(ctmp, sizeof(ctmp), " (%s) %s", sz, (c == '\"') ? "" : "\"\"");
u = utf8_to_ucs4_cpystr(ctmp);