diff --git a/src/BUTR.CrashReport.Renderer.ImGui/ImGui/CmGui.Methods.cs b/src/BUTR.CrashReport.Renderer.ImGui/ImGui/CmGui.Methods.cs index b0fc73b..ca4a5d0 100644 --- a/src/BUTR.CrashReport.Renderer.ImGui/ImGui/CmGui.Methods.cs +++ b/src/BUTR.CrashReport.Renderer.ImGui/ImGui/CmGui.Methods.cs @@ -69,8 +69,7 @@ public void TextSameLine(ref readonly DateTimeOffset value) { Span valueUtf8 = stackalloc byte[64]; Utf8Formatter.TryFormat(value, valueUtf8, out var written, new StandardFormat('O')); - valueUtf8[written + 1] = 0; - Text(valueUtf8.Slice(0, written + 1)); + Text(valueUtf8.Slice(0, written)); SameLine(0, 0); }