wrappers: Fix the output filtering for clang -v

This makes the code actually do what was intended, for cases with
multiple consecutive backslashes, each escaped to double backslashes.
This commit is contained in:
Martin Storsjö committed 2020-08-20 12:51:40 +03:00
1 parent 0fc16eb24d
commit d7e5858a60
1 file changed
+1 -1
+1 -1
View File
@@ -59,7 +59,7 @@ static void filter_stderr(char *buf, int n) {
// Last output char was a backslash converted into a
// forward slash. Ignore this one, but handle the next
// one in case there's more.
last = ' ';
cur = ' ';
}
} else {
buf[out++] = cur;