projects
/
mmh
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
use old error message
[mmh]
/
uip
/
mhshowsbr.c
diff --git
a/uip/mhshowsbr.c
b/uip/mhshowsbr.c
index
6298869
..
c7923c8
100644
(file)
--- a/
uip/mhshowsbr.c
+++ b/
uip/mhshowsbr.c
@@
-76,7
+76,7
@@
show_all_messages(CT *cts)
** for showing headers of MIME messages.
*/
if (!formsw)
** 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.
/*
** 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");
}
} 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);
}
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? */
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);
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) {
/* 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);
}
return show_content_aux(ct, alternate, cp, NULL);
}