-
-/*
- * 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
if (arg) {
while (*arg)
- vec[vecp++] = *arg++;
+ vec[vecp++] = mh_xstrdup(*arg++);
}
vec[vecp] = NULL;
execvp (program, vec);
fprintf (stderr, "unable to exec ");
perror (fileproc);
- _exit (-1);
+ _exit(1);
default:
arglist_free(program, vec);
- return (pidwait (pid, -1));
+ return pidwait(pid, -1);
}
}