git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@2702
4a8a32a2-be11-0410-ad9d-
d568d2c75423
+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
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);
{
/* 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);
has_path(const char *path)
{
if (strrchr(path, DIR_SEPARATOR_CHAR) == NULL)
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