summaryrefslogtreecommitdiff
path: root/pith/init.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 /pith/init.c
parent36b77661542a63c4579943951d143c8cc9c99460 (diff)
downloadalpine-2695b63fbe6c6a2206a2637137c6cd654f69943a.tar.xz
* Clear even more warnings from clang 3.5 and MAC OSX.
Diffstat (limited to 'pith/init.c')
-rw-r--r--pith/init.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pith/init.c b/pith/init.c
index 978297f0..ba77f704 100644
--- a/pith/init.c
+++ b/pith/init.c
@@ -378,8 +378,8 @@ get_mail_list(CONTEXT_S *list_cntxt, char *folder_base)
folder_base_len = strlen(searchname) - 1;
}
else
-#endif
- snprintf(searchname, sizeof(searchname), "%.*s*", sizeof(searchname)-2, folder_base);
+#endif /* MAXPATH + 1 = sizeof(searchmane) */
+ snprintf(searchname, sizeof(searchname), "%.*s*", MAXPATH+1-2, folder_base);
build_folder_list(NULL, list_cntxt, searchname, NULL, BFL_FLDRONLY);