X-Git-Url: http://git.madism.org/?a=blobdiff_plain;f=imap%2Futil.c;h=8e6832be3b41ebad82fdbb0049e33f03d9f5875e;hb=b07d69b15852a06183f7b2298436e18150c36958;hp=63dd769eeab928e5036cc857a477cb665cf6b7d9;hpb=ecaab35b973fbceb58b5ed174971c82762cc0199;p=apps%2Fmadmutt.git diff --git a/imap/util.c b/imap/util.c index 63dd769..8e6832b 100644 --- a/imap/util.c +++ b/imap/util.c @@ -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);