Chromium Code Reviews| Index: runtime/bin/builtin_natives.cc |
| =================================================================== |
| --- runtime/bin/builtin_natives.cc (revision 33235) |
| +++ runtime/bin/builtin_natives.cc (working copy) |
| @@ -113,7 +113,9 @@ |
| // interrupt. |
| fprintf(stdout, "%s\n", Dart_GetError(result)); |
| } else { |
| - fprintf(stdout, "%.*s\n", static_cast<int>(length), chars); |
| + // Uses fwrite to support printing NUL bytes. |
| + fwrite(chars, 1, length, stdout); |
| + fputs("\n", stdout); |
| } |
| fflush(stdout); |
| } |