From 462216d862bfeff481d078a63734b387b8a3fd5d Mon Sep 17 00:00:00 2001 From: Pascal Thomet Date: Wed, 29 Nov 2023 18:17:20 +0100 Subject: [PATCH] Demo: fix line_buffer issue in ParseDemoMarkerTags --- imgui_demo.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/imgui_demo.cpp b/imgui_demo.cpp index 649c9057583cf..0ddc49a054d0b 100644 --- a/imgui_demo.cpp +++ b/imgui_demo.cpp @@ -8360,6 +8360,7 @@ namespace ImGuiDemoMarkerCodeViewer_Impl ImVector r; { char line_buffer[2048]; + memset(line_buffer, 0, 2048); char tag_buffer[IMGUI_DEMO_MARKER_MAX_TAG_LENGTH]; for (int line_number = 0; line_number < lines.size(); ++line_number) {