mp->m_next = NULL;
mp->m_text = getcpy (str);
if (pers)
- mp->m_pers = getcpy (pers);
+ mp->m_pers = mh_xstrdup(pers);
if (mbox == NULL) {
mp->m_type = BADHOST;
mp->m_ingrp = ingrp;
mp->m_gname = getcpy (grp);
if (note)
- mp->m_note = getcpy (note);
+ mp->m_note = mh_xstrdup(note);
return mp;
}
if (host) {
mp->m_mbox = getcpy (mbox);
- mp->m_host = getcpy (host);
+ mp->m_host = mh_xstrdup(host);
mp->m_type =
strcasecmp (LocalName(0), mp->m_host) ? NETHOST : LOCALHOST;
} else {
if ((pp = strchr(mbox, '!'))) {
*pp++ = '\0';
- mp->m_mbox = getcpy (pp);
+ mp->m_mbox = mh_xstrdup(pp);
mp->m_host = getcpy (mbox);
mp->m_type = UUCPHOST;
} else {
to support wild-card matching. */
if (route)
- mp->m_path = getcpy (route);
+ mp->m_path = mh_xstrdup(route);
mp->m_ingrp = ingrp;
if (grp)
- mp->m_gname = getcpy (grp);
+ mp->m_gname = mh_xstrdup(grp);
if (note)
- mp->m_note = getcpy (note);
+ mp->m_note = mh_xstrdup(note);
return mp;
}
if (!space && !metachar) {
argvarray[0] = getcpy(r1bindex(command, '/'));
argvarray[1] = NULL;
- *file = getcpy(command);
+ *file = mh_xstrdup(command);
if (argp)
*argp = 1;
return argvarray;
if (space && !metachar) {
char **split;
- p = getcpy(command);
+ p = mh_xstrdup(command);
split = brkstring(p, " \t", NULL);
if (split[0] == NULL) {
adios(NULL, "Invalid blank command found");
}
- argvarray[0] = getcpy(r1bindex(split[0], '/'));
+ argvarray[0] = mh_xstrdup(r1bindex(split[0], '/'));
for (i = 1; split[i] != NULL; i++) {
if (i > MAXARGS) {
adios(NULL, "Command exceeded argument limit");
}
- argvarray[i] = getcpy(split[i]);
+ argvarray[i] = mh_xstrdup(split[i]);
}
argvarray[i] = NULL;
- *file = getcpy(split[0]);
+ *file = mh_xstrdup(split[0]);
if (argp)
*argp = i;
free(p);
*file = mh_xstrdup("/bin/sh");
argvarray[0] = mh_xstrdup("sh");
argvarray[1] = mh_xstrdup("-c");
- argvarray[2] = getcpy(command);
+ argvarray[2] = mh_xstrdup(command);
argvarray[2] = add(" \"$@\"", argvarray[2]);
argvarray[3] = mh_xstrdup("/bin/sh");
argvarray[4] = NULL;
base = "unknown error";
}
if (ctx->err_details == NULL) {
- return ctx->err_formatted = getcpy(base);
+ return ctx->err_formatted = mh_xstrdup(base);
}
ctx->err_formatted = concat(base, ": ", ctx->err_details, NULL);