{
/* allocate extra space for 2x'"', ' ' and '\0' */
char *cmd_line = (char *)Safe_alloc(strlen(command) + strlen(params) + 4);
- sprintf(cmd_line, "%s %s", command, params);
-
+ sprintf(cmd_line, "\"%s\" %s", command, params);
return cmd_line;
}
/*!
- * check if the path is absolute
+ * check if the path is relative or absolute (if contains the dir separator)
*/
static int