less horrible strncpy's
[apps/madmutt.git] / send.c
diff --git a/send.c b/send.c
index bc84b6b..01fde6c 100644 (file)
--- a/send.c
+++ b/send.c
@@ -267,7 +267,7 @@ static int edit_envelope (ENVELOPE * en, int flags)
       if (ascii_strncasecmp ("subject:", uh->data, 8) == 0) {
         p = uh->data + 8;
         SKIPWS (p);
-        strncpy (buf, p, sizeof (buf));
+        m_strcpy(buf, sizeof(buf), p);
       }
     }
   }