From 0c93fb538f7fd17fa07051fa28681cc8ca2bc12b Mon Sep 17 00:00:00 2001 From: bernhardheld Date: Wed, 18 Jun 2003 14:22:05 +0000 Subject: [PATCH] * support/Util/MySystem.c (merge_command): quick fix for Linux segfault with \"cmd\" arg git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@2702 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- ChangeLog | 4 ++++ support/Util/MySystem.c | 6 +----- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/ChangeLog b/ChangeLog index 82a60ceb..6877a7df 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2003-06-18 Bernhard Held + + * support/Util/MySystem.c (merge_command): quick fix for Linux segfault with \"cmd\" arg + 2003-06-15 Borut Razem * support/cpp2/sdcc.h: HAVE_DOS_BASED_FILE_SYSTEM defined for _WIN23 diff --git a/support/Util/MySystem.c b/support/Util/MySystem.c index 307149bd..7017ad1e 100644 --- a/support/Util/MySystem.c +++ b/support/Util/MySystem.c @@ -237,7 +237,7 @@ merge_command(const char *command, const char *params) { /* 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; } @@ -251,10 +251,6 @@ static int 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; -- 2.47.2