X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=attach.c;h=8eeb71b6ea96fde233f5db3befe19de9bb676999;hp=8b9cb82361fc27c1dcccc30f1a7e8145e6c2dbda;hb=c6b9d35ed9361e4defab9762a7480d5126405ae9;hpb=ee869a42bc5677da8e3602ec1947af1736786648 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;