]> git.marmaro.de Git - mmh/blobdiff - uip/mhshowsbr.c
Completely reworked the path convertion functions
[mmh] / uip / mhshowsbr.c
index 0a527ad7122ce0f9d5be2f0bac4ac647c96376d1..7f3ef7030df3719bfb93e714446c4532f857f1b8 100644 (file)
@@ -669,7 +669,7 @@ show_text(CT ct, int serial, int alternate)
                snprintf(buffer, sizeof(buffer), "%%p%s '%%F'",
                                progsw ? progsw : moreproc && *moreproc ?
                                moreproc : "more");
-               cp = (ct->c_showproc = add(buffer, NULL));
+               cp = (ct->c_showproc = getcpy(buffer));
                return show_content_aux(ct, serial, alternate, cp, NULL);
        }
 
@@ -884,7 +884,7 @@ show_multi_aux(CT ct, int serial, int alternate, char *cp)
                                return NOTOK;
 
                        /* I'm not sure if this is necessary? */
-                       p->c_storage = add(file, NULL);
+                       p->c_storage = getcpy(file);
 
                        if (p->c_showproc && !strcmp(p->c_showproc, "true"))
                                return (alternate ? DONE : OK);
@@ -1098,7 +1098,7 @@ show_message_rfc822(CT ct, int serial, int alternate)
 
        /* default method for message/rfc822 */
        if (ct->c_subtype == MESSAGE_RFC822) {
-               cp = (ct->c_showproc = add("%pshow -file '%F'", NULL));
+               cp = (ct->c_showproc = getcpy("%pshow -file '%F'"));
                return show_content_aux(ct, serial, alternate, cp, NULL);
        }