summaryrefslogtreecommitdiffstats
path: root/imap/mailboxlist.c
diff options
context:
space:
mode:
authorSam Varshavchik2015-06-27 13:26:50 -0400
committerSam Varshavchik2015-06-27 13:26:50 -0400
commit174541a2e670c0ee70fd2fb3116209f96ecc173e (patch)
treeab31a41aca11ccad42c120ff0abe7e32fd29762f /imap/mailboxlist.c
parent67b9324b4d78f3fc5cb92e0b024c1c5cfca5a39b (diff)
downloadcourier-libs-174541a2e670c0ee70fd2fb3116209f96ecc173e.tar.bz2
Fix some bounds checking issues. Added ESMTP_PREFER_IPV6_MX setting.
Diffstat (limited to 'imap/mailboxlist.c')
-rw-r--r--imap/mailboxlist.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/imap/mailboxlist.c b/imap/mailboxlist.c
index 9bcfd7c..02f36b4 100644
--- a/imap/mailboxlist.c
+++ b/imap/mailboxlist.c
@@ -965,7 +965,7 @@ int callback_rc=0;
if (isnullname)
found_hier=mb_flags;
- else
+ else
{
strcat(strcat(strcpy(hiersepbuf, "\""),
hierchs), "\"");
@@ -1018,7 +1018,7 @@ static void match_mailbox_prep(char *name)
/* ... except that "shared" should be lowercase ... */
- if (memcmp(name, "SHARED", 6) == 0)
+ if (strncmp(name, "SHARED", 6) == 0)
memcpy(name, "shared", 6);
}