From 0029e894f3a27a3bd3382c71a7717de3417bce03 Mon Sep 17 00:00:00 2001 From: Vitalii Mikhailov Date: Sat, 12 Oct 2024 14:43:45 +0300 Subject: [PATCH] Fix --- src/BUTR.CrashReport.Renderer.ImGui/ImGui/CmGui.Methods.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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); }