X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=imap%2Futil.c;h=5ca2fad88e2e2ca75b49fa1f86011db5e2dd8453;hp=63dd769eeab928e5036cc857a477cb665cf6b7d9;hb=c98480f8568e6c1bc927c6c5f2b5e80b4aa6548c;hpb=ecaab35b973fbceb58b5ed174971c82762cc0199 diff --git a/imap/util.c b/imap/util.c index 63dd769..5ca2fad 100644 --- a/imap/util.c +++ b/imap/util.c @@ -137,7 +137,7 @@ void imap_pretty_mailbox (char *path) if (mx_get_magic (Maildir) == M_IMAP && !imap_parse_path (Maildir, &home)) { hlen = m_strlen(home.mbox); if (tlen && mutt_account_match (&home.account, &target.account) && - !str_ncmp (home.mbox, target.mbox, hlen)) { + !m_strncmp(home.mbox, target.mbox, hlen)) { if (!hlen) home_match = 1; else @@ -443,7 +443,7 @@ void imap_unmunge_mbox_name (char *s) buf = m_strdup(s); if (buf) { imap_utf7_decode (&buf); - strncpy (s, buf, m_strlen(s)); + m_strcpy(s, m_strlen(s) + 1, buf); } p_delete(&buf);