exit strfcpy, only use m_strcpy.
[apps/madmutt.git] / crypt-gpgme.c
index c8cfd19..e920128 100644 (file)
@@ -1789,7 +1789,7 @@ int pgp_gpgme_application_handler (BODY * m, STATE * s)
      but we know that this may only be text thus we assume Latin-1
      here. */
   if (!mutt_get_body_charset (body_charset, sizeof (body_charset), m))
-    strfcpy (body_charset, "iso-8859-1", sizeof body_charset);
+    m_strcpy(body_charset, sizeof(body_charset), "iso-8859-1");
 
   fseeko (s->fpin, m->offset, 0);
   last_pos = m->offset;
@@ -3622,7 +3622,7 @@ static crypt_key_t *crypt_ask_for_key (char *tag,
 
     for (l = id_defaults; l; l = l->next)
       if (!m_strcasecmp(whatfor, l->what)) {
-        strfcpy (resp, NONULL (l->dflt), sizeof (resp));
+        m_strcpy(resp, sizeof(resp), NONULL(l->dflt));
         break;
       }
   }