Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Aragas committed Oct 12, 2024
1 parent 0029e89 commit 5b6a527
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/BUTR.CrashReport.Renderer.ImGui/ImGui/CmGui.Methods.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ public bool InputTextMultiline(ReadOnlySpan<byte> label, Span<byte> input, int l
[MethodImpl(MethodImplOptions.AggressiveInlining | AggressiveOptimization)]
public void Text(bool fmt)
{
var @true = "true"u8;
var @false = "false"u8;
var @true = "true\0"u8;
var @false = "false\0"u8;
Text(fmt ? @true : @false);
}

Expand Down Expand Up @@ -69,6 +69,7 @@ public void TextSameLine(ref readonly DateTimeOffset value)
{
Span<byte> valueUtf8 = stackalloc byte[64];
Utf8Formatter.TryFormat(value, valueUtf8, out var written, new StandardFormat('O'));
valueUtf8[written] = 0;
Text(valueUtf8.Slice(0, written));
SameLine(0, 0);
}
Expand Down

0 comments on commit 5b6a527

Please sign in to comment.