Fix uip/whom.c for C89 compatibility
[mmh] / uip / mhshowsbr.c
index 6298869..c7923c8 100644 (file)
@@ -76,7 +76,7 @@ show_all_messages(CT *cts)
        ** for showing headers of MIME messages.
        */
        if (!formsw)
-               formsw = getcpy(etcpath("mhl.headers"));
+               formsw = mh_xstrdup(etcpath("mhl.headers"));
 
        /*
        ** If form is "mhl.null", suppress display of header.
@@ -527,7 +527,7 @@ show_text(CT ct, int alternate)
                } else {
                        snprintf(buffer, sizeof(buffer), "%%lcat");
                }
-               ct->c_showproc = getcpy(buffer);
+               ct->c_showproc = mh_xstrdup(buffer);
                return show_content_aux(ct, alternate, ct->c_showproc, NULL);
        }
 
@@ -681,7 +681,7 @@ show_multi_aux(CT ct, int alternate, char *cp)
                                return NOTOK;
 
                        /* I'm not sure if this is necessary? */
-                       p->c_storage = getcpy(file);
+                       p->c_storage = mh_xstrdup(file);
 
                        if (p->c_showproc && strcmp(p->c_showproc, "true")==0)
                                return (alternate ? DONE : OK);
@@ -866,7 +866,7 @@ show_message_rfc822(CT ct, int alternate)
 
        /* default method for message/rfc822 */
        if (ct->c_subtype == MESSAGE_RFC822) {
-               cp = (ct->c_showproc = getcpy("%lshow -file %F"));
+               cp = (ct->c_showproc = mh_xstrdup("%lshow -file %F"));
                return show_content_aux(ct, alternate, cp, NULL);
        }