X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/bacd74669e1b6614519259f7eaba98da54f9c97c..c576ad2674c37a1c63f004c71049998f38854c64:/sbr/refile.c diff --git a/sbr/refile.c b/sbr/refile.c index c675500f..ade07f6e 100644 --- a/sbr/refile.c +++ b/sbr/refile.c @@ -1,6 +1,4 @@ - -/* - * refile.c -- call the "fileproc" to refile the +/* refile.c -- call the "fileproc" to refile the * -- msg or draft into another folder * * This code is Copyright (c) 2002, by the authors of nmh. See the @@ -9,6 +7,7 @@ */ #include +#include int @@ -21,14 +20,14 @@ refile (char **arg, char *file) vec = argsplit(fileproc, &program, &vecp); - vec[vecp++] = getcpy("-nolink"); /* override bad .mh_profile defaults */ - vec[vecp++] = getcpy("-nopreserve"); - vec[vecp++] = getcpy("-file"); + vec[vecp++] = mh_xstrdup("-nolink"); /* override bad .mh_profile defaults */ + vec[vecp++] = mh_xstrdup("-nopreserve"); + vec[vecp++] = mh_xstrdup("-file"); vec[vecp++] = getcpy(file); if (arg) { while (*arg) - vec[vecp++] = *arg++; + vec[vecp++] = mh_xstrdup(*arg++); } vec[vecp] = NULL; @@ -48,6 +47,6 @@ refile (char **arg, char *file) default: arglist_free(program, vec); - return (pidwait (pid, -1)); + return pidwait(pid, -1); } }