Skip to content

Commit

Permalink
fix CI warning
Browse files Browse the repository at this point in the history
  • Loading branch information
sthalik committed Nov 15, 2024
1 parent f3a5962 commit 87357a0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion editor/imgui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ void app::do_popup_menu()
if (!exists)
add_inspector(std::exchange(_popup_target, {}));
{
char buf2[10], buf3[128], buf[sizeof buf2 + sizeof buf3 - 1];
char buf2[10], buf3[128], buf[sizeof buf2 + sizeof buf3 + 3 - 1];
entity_inspector_name(buf2, e.id);
entity_friendly_name(buf3, sizeof buf3, e);
std::snprintf(buf, sizeof buf, "%s###%s", buf3, buf2);
Expand Down
2 changes: 1 addition & 1 deletion editor/inspect-draw.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ void app::draw_inspector()
}
auto& e = *eʹ;

char buf2[10], buf3[128], buf[sizeof buf2 + sizeof buf3 - 1];
char buf2[10], buf3[128], buf[sizeof buf2 + sizeof buf3 + 3 - 1];
ImGui::SetNextWindowSize({375*dpi[0], 0});
entity_inspector_name(buf2, e.id);
entity_friendly_name(buf3, sizeof buf3, e);
Expand Down

0 comments on commit 87357a0

Please sign in to comment.