summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/dcrt0.cc
diff options
context:
space:
mode:
Diffstat (limited to 'winsup/cygwin/dcrt0.cc')
-rw-r--r--winsup/cygwin/dcrt0.cc7
1 files changed, 6 insertions, 1 deletions
diff --git a/winsup/cygwin/dcrt0.cc b/winsup/cygwin/dcrt0.cc
index e33187acf..0b6c7012d 100644
--- a/winsup/cygwin/dcrt0.cc
+++ b/winsup/cygwin/dcrt0.cc
@@ -313,7 +313,12 @@ quoted (char *cmd, int winshell)
p = cmd + 1;
while (*p)
{
- if (*p != quote)
+ if (*p == '\\' && p[1] == '\\')
+ {
+ strcpy (p, p + 1);
+ p++;
+ }
+ else if (*p != quote)
p++;
else if (p[-1] == '\\')
strcpy (p - 1, p);