/* put together list of arguments */
p = pargv = mh_xmalloc(pargc * sizeof(char *));
- c = *pargv = mh_xmalloc(plen * sizeof(char));
+ c = *pargv = mh_xmalloc(plen);
for (cur = pro; *cur; cur++) {
if (isspace(*cur) && cur[1] && !isspace(cur[1])) {
*c++ = '\0';
close(1);
free(*argv);
free(argv);
- exit(10);
+ exit(1);
}
/* okay in the parent we do some stuff */
case OK:
if (poprint)
fprintf (stderr, "<--- %s\n", response);
- return (*response == '+' ? OK : NOTOK);
+ return *response == '+' ? OK : NOTOK;
case NOTOK:
case DONE: