Skip to content

Commit

Permalink
Update crates/wasi-common/src/sandboxed_tty_writer.rs
Browse files Browse the repository at this point in the history
Co-Authored-By: bjorn3 <bjorn3@users.noreply.github.com>
  • Loading branch information
sunfishcode and bjorn3 committed Dec 18, 2019
1 parent 6a6f30b commit 9d7d367
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/wasi-common/src/sandboxed_tty_writer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ where
x if x.is_control() => '�',
x => x,
}
.encode_utf8(&mut self.scratch)
.encode_utf8(&mut [0; 4])
.as_bytes(),
)?;

Expand Down

0 comments on commit 9d7d367

Please sign in to comment.