Skip to content

Commit

Permalink
surtr: fix simple text output string
Browse files Browse the repository at this point in the history
Signed-off-by: smallkirby <[email protected]>
  • Loading branch information
smallkirby committed Oct 16, 2024
1 parent d31c29c commit 086dd13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion surtr/log.zig
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ pub fn init(out: *Sto) void {
fn writerFunction(_: void, bytes: []const u8) LogError!usize {
for (bytes) |b| {
// EFI uses UCS-2 encoding.
con_out.outputString(&[_:0]u16{ b, 0 }).err() catch unreachable;
con_out.outputString(&[_:0]u16{b}).err() catch unreachable;
}
return bytes.len;
}
Expand Down

0 comments on commit 086dd13

Please sign in to comment.