Skip to content

Commit

Permalink
Demo: fix line_buffer issue in ParseDemoMarkerTags
Browse files Browse the repository at this point in the history
  • Loading branch information
pthom committed Nov 29, 2023
1 parent 10bcc8f commit 462216d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions imgui_demo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8360,6 +8360,7 @@ namespace ImGuiDemoMarkerCodeViewer_Impl
ImVector<DemoMarkerTag> 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)
{
Expand Down

0 comments on commit 462216d

Please sign in to comment.