]> diplodocus.org Git - nmh/blobdiff - uip/mhfixmsg.c
Replace getcpy() with mh_xstrdup() where the string isn't NULL.
[nmh] / uip / mhfixmsg.c
index e9ed4fc91197a5c710c1bfa41f1fc6c90784cb3c..eba84526f20644453fee95c986f17c36f66b39fe 100644 (file)
@@ -1277,7 +1277,7 @@ ensure_text_plain (CT *ct, CT parent, int *message_mods, int replacetextplain) {
                         HF hf;
 
                         parent->c_subtype = MULTI_ALTERNATE;
-                        parent->c_ctinfo.ci_subtype = getcpy ("alternative");
+                        parent->c_ctinfo.ci_subtype = mh_xstrdup("alternative");
                         if (! replace_substring (&parent->c_ctline, "/related",
                                                  "/alternative")) {
                             advise (NULL,