imap_fix_path (idata, mx.mbox, mbox, sizeof (mbox));
imap_munge_mbox_name (buf, sizeof (buf), mbox);
imap_unquote_string (buf); /* As kludgy as it gets */
- mbox[sizeof (mbox) - 1] = '\0';
- strncpy (mbox, buf, sizeof (mbox) - 1);
+ m_strcpy(mbox, sizeof(mbox), buf);
n = m_strlen(mbox);
debug_print (3, ("mbox: %s\n", mbox));