X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=mx.c;h=53488216fa942171cd5bbfa436002bacbd09a7fb;hp=b25d84155bbb792b0efda925828fac17d637c9aa;hb=238b70e39b78f585c586bd51aef41988b3cc73d1;hpb=2ea77d3b2827ba23feb756ce2fb936565ae38998 diff --git a/mx.c b/mx.c index b25d841..5348821 100644 --- a/mx.c +++ b/mx.c @@ -16,6 +16,7 @@ #include #include #include +#include #include "mutt.h" #include "buffy.h" @@ -744,10 +745,10 @@ static int _mx_close_mailbox (CONTEXT * ctx, int *index_hint) if ((p = mutt_find_hook (M_MBOXHOOK, ctx->path))) { isSpool = 1; - strfcpy (mbox, p, sizeof (mbox)); + m_strcpy(mbox, sizeof(mbox), p); } else { - strfcpy (mbox, NONULL (Inbox), sizeof (mbox)); + m_strcpy(mbox, sizeof(mbox), NONULL(Inbox)); isSpool = mutt_is_spool (ctx->path) && !mutt_is_spool (mbox); } mutt_expand_path (mbox, sizeof (mbox)); @@ -1008,8 +1009,7 @@ static int _mx_sync_mailbox (CONTEXT * ctx, int *index_hint) km_find_func (MENU_MAIN, OP_TOGGLE_WRITE))) snprintf (tmp, sizeof (tmp), _(" Press '%s' to toggle write"), buf); else - strfcpy (tmp, _("Use 'toggle-write' to re-enable write!"), - sizeof (tmp)); + m_strcpy(tmp, sizeof(tmp), _("Use 'toggle-write' to re-enable write!")); mutt_error (_("Mailbox is marked unwritable. %s"), tmp); return -1;