less horrible strncpy's
[apps/madmutt.git] / attach.c
index 8b9cb82..8eeb71b 100644 (file)
--- 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;