diff options
author | Tamar Christina <tamar@zhox.com> | 2017-06-06 16:16:32 +0100 |
---|---|---|
committer | Tamar Christina <tamar@zhox.com> | 2017-06-08 07:15:26 +0100 |
commit | bca56bd040de64315564cdac4b7e943fc8a75ea0 (patch) | |
tree | 4b07940fa5e45b6e9e37538f55edf060cb0d9906 /driver | |
parent | ef07010cf4f480d9f595a71cf5b009884522a75e (diff) | |
download | haskell-bca56bd040de64315564cdac4b7e943fc8a75ea0.tar.gz |
Fix slash escaping in cwrapper.c
Summary: Escape `\` in paths on Windows in `cwapper.c` when we re-output the paths.
Test Plan: ./validate
Reviewers: austin, bgamari
Reviewed By: bgamari
Subscribers: rwbarton, thomie
GHC Trac Issues: #13666
Differential Revision: https://phabricator.haskell.org/D3628
Diffstat (limited to 'driver')
-rw-r--r-- | driver/utils/cwrapper.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/driver/utils/cwrapper.c b/driver/utils/cwrapper.c index da6cec4bc3..5a30274ba7 100644 --- a/driver/utils/cwrapper.c +++ b/driver/utils/cwrapper.c @@ -59,7 +59,7 @@ char *flattenAndQuoteArgs(char *ptr, int argc, char *argv[]) *ptr++ = '"'; src = argv[i]; while(*src) { - if (*src == '"') { + if (*src == '"' || *src == '\\') { *ptr++ = '\\'; } *ptr++ = *src++; |