New(1310, cmd, len, char);
ptr = cmd;
strcpy(ptr, command);
- ptr += strlen(ptr);
- *ptr++ = ' ';
for (index = 0; (arg = (char*)args[index]) != NULL; ++index) {
- strcpy(ptr, arg);
ptr += strlen(ptr);
- if ((char*)args[index+1] != NULL)
- *ptr++ = ' ';
+ *ptr++ = ' ';
+ strcpy(ptr, arg);
}
return cmd;