Skip to content

Commit 87357a0

Browse files
committed
fix CI warning
1 parent f3a5962 commit 87357a0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

editor/imgui.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ void app::do_popup_menu()
372372
if (!exists)
373373
add_inspector(std::exchange(_popup_target, {}));
374374
{
375-
char buf2[10], buf3[128], buf[sizeof buf2 + sizeof buf3 - 1];
375+
char buf2[10], buf3[128], buf[sizeof buf2 + sizeof buf3 + 3 - 1];
376376
entity_inspector_name(buf2, e.id);
377377
entity_friendly_name(buf3, sizeof buf3, e);
378378
std::snprintf(buf, sizeof buf, "%s###%s", buf3, buf2);

editor/inspect-draw.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ void app::draw_inspector()
3333
}
3434
auto& e = *eʹ;
3535

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

0 commit comments

Comments
 (0)