Skip to content

src: don't include a null character in the WriteConsoleW call

Rodrigo Muino Tomonari requested to merge github/fork/seishun/debug into master
Checklist
  • make -j4 test (UNIX), or vcbuild test nosign (Windows) passes
  • tests and/or benchmarks are included
  • commit message follows commit guidelines
Affected core subsystem(s)
Description of change

It seems if WriteConsoleW is called with a string that has a null character at the end, the console turns it into a space.

Fixes: https://github.com/nodejs/node/issues/7755

Merge request reports

Loading