X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/3b6be5607a251a3a793e97382e251ce66ea2bca0..c02f66668d32980a3770e450061c5b96b9f31690:/sbr/refile.c diff --git a/sbr/refile.c b/sbr/refile.c index f0fc76e5..43ad908e 100644 --- a/sbr/refile.c +++ b/sbr/refile.c @@ -9,6 +9,7 @@ */ #include +#include int @@ -21,9 +22,9 @@ 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) { @@ -35,7 +36,7 @@ refile (char **arg, char *file) context_save(); /* save the context file */ fflush(stdout); - switch (pid = vfork()) { + switch (pid = fork()) { case -1: advise ("fork", "unable to"); return -1;