X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=attach.c;h=8eeb71b6ea96fde233f5db3befe19de9bb676999;hp=8b9cb82361fc27c1dcccc30f1a7e8145e6c2dbda;hb=b07d69b15852a06183f7b2298436e18150c36958;hpb=ae0ce4dfcafa0c3820f107c5bfa8bd06e5272b57 diff --git a/attach.c b/attach.c index 8b9cb82..8eeb71b 100644 --- a/attach.c +++ b/attach.c @@ -353,7 +353,7 @@ int mutt_is_autoview (BODY * b, const char *type) if (!type) snprintf (_type, sizeof (_type), "%s/%s", TYPE (b), b->subtype); else - strncpy (_type, type, sizeof (_type)); + m_strcpy(_type, sizeof(_type), type); mutt_check_lookup_list (b, _type, sizeof (_type)); type = _type;