diff --git a/sandboxed_api/bazel/filewrapper.cc b/sandboxed_api/bazel/filewrapper.cc index 1f97680..8b3f212 100644 --- a/sandboxed_api/bazel/filewrapper.cc +++ b/sandboxed_api/bazel/filewrapper.cc @@ -36,7 +36,7 @@ void FWriteCEscapedC(int c, FILE* out) { 4, 4, 4, 4, 4, 4, 4, 4, 4, 2, 2, 4, 4, 2, 4, 4, // \t, \n, \r 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, // " - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, // '0'..'9' + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, // '0'..'9' 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, // 'A'..'O' 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, // 'P'..'Z', '\' 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, // 'a'..'o' @@ -71,13 +71,10 @@ void FWriteCEscapedC(int c, FILE* out) { fputc('t', out); break; case '\"': - fputc('\"', out); - break; case '\'': - fputc('\'', out); - break; case '\\': - fputc('\\', out); + case '?': + fputc(c, out); break; } } else {