X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=uip%2Fforw.c;h=e00ae0e1cbd6d2181dc284a4a7ed69646f7b36de;hp=5b577bda8ccbd449c92b0b4b1f6d00afa0d26c18;hb=6e9577f324bef90765a5edc02044eb111ec48072;hpb=d4c34b4439a9dbd89664de460ed37ecddc260fb1 diff --git a/uip/forw.c b/uip/forw.c index 5b577bd..e00ae0e 100644 --- a/uip/forw.c +++ b/uip/forw.c @@ -44,6 +44,8 @@ static struct swit switches[] = { { NULL, 0 } }; +char *version=VERSION; + static char drft[BUFSIZ]; static struct msgs *mp = NULL; @@ -153,13 +155,13 @@ main(int argc, char **argv) if (folder) adios(EX_USAGE, NULL, "only one folder at a time!"); else - folder = getcpy(expandfol(cp)); + folder = mh_xstrdup(expandfol(cp)); } else { msgs[msgp++] = cp; } } - cwd = getcpy(pwd()); + cwd = mh_xstrdup(pwd()); strncpy(drft, buildsw ? toabsdir("draft") : m_draft(seq_beyond), sizeof(drft)); /* @@ -233,10 +235,10 @@ main(int argc, char **argv) if (digest) { snprintf(buf, sizeof(buf), IFORMAT, digest); snprintf(value, sizeof(value), "%d", issue); - context_replace(buf, getcpy(value)); + context_replace(buf, mh_xstrdup(value)); snprintf(buf, sizeof(buf), VFORMAT, digest); snprintf(value, sizeof(value), "%d", volume); - context_replace(buf, getcpy(value)); + context_replace(buf, mh_xstrdup(value)); } context_replace(curfolder, folder); /* update current folder */ @@ -316,7 +318,7 @@ build_form(char *form, char *digest, int volume, int issue) cptr->c_text = digest; FINDCOMP(cptr, "date"); if (cptr) - cptr->c_text = getcpy(dtimenow()); + cptr->c_text = mh_xstrdup(dtimenow()); dat[0] = issue; dat[1] = volume;