int async_nProcs = 0;
-char *
-allocString(s)
- char *s;
-{
- char *new = (char *)malloc(strlen(s) + 1);
- strcpy(new, s);
- return new;
-}
-
void
async_BulkProc(data)
char *data;
name++;
/* sprintf(tempfile, "/usr/tmp/%s.%s", myHostName, name);*/
sprintf(tempfile, "/usr/tmp/%s", name);
- work->local = allocString(store ? file : tempfile);
- work->remote = allocString(store ? tempfile : file);
+ work->local = strdup(store ? file : tempfile);
+ work->remote = strdup(store ? tempfile : file);
async_nProcs += 1;
LWP_CreateProcess(async_BulkProc, 3000, RX_PROCESS_PRIORITY, (void *)work,
"bulk", &pid);