X-Git-Url: http://git.madism.org/?a=blobdiff_plain;f=imap%2Futil.c;h=8e6832be3b41ebad82fdbb0049e33f03d9f5875e;hb=b07d69b15852a06183f7b2298436e18150c36958;hp=992423e70af44e16099a6e95a5c1653d53072a67;hpb=7f7a0be369840b290248e5b0302beb447fa1b3cd;p=apps%2Fmadmutt.git diff --git a/imap/util.c b/imap/util.c index 992423e..8e6832b 100644 --- a/imap/util.c +++ b/imap/util.c @@ -14,10 +14,10 @@ #include "config.h" #include +#include #include "mutt.h" #include "mx.h" /* for M_IMAP */ -#include "ascii.h" #include "url.h" #include "imap_private.h" #include "mutt_ssl.h" @@ -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);