+2003-06-18 Bernhard Held <bernhard@bernhardheld.de>
+
+ * support/Util/MySystem.c (merge_command): quick fix for Linux segfault with \"cmd\" arg
+
2003-06-15 Borut Razem <borut.razem@siol.net>
* support/cpp2/sdcc.h: HAVE_DOS_BASED_FILE_SYSTEM defined for _WIN23
{
/* 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;
}
has_path(const char *path)
{
if (strrchr(path, DIR_SEPARATOR_CHAR) == NULL)
-#ifdef _WIN32
- /* try *nix dir separator on WIN32 */
- if (strrchr(path, UNIX_DIR_SEPARATOR_CHAR) == NULL)
-#endif
return 0;
return 1;