Commit bca56bd0 authored by Tamar Christina's avatar Tamar Christina

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
parent ef07010c
......@@ -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++;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment