summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2024-11-15 20:51:56 +0100
committerStanislaw Halik <sthalik@misaki.pl>2024-11-15 20:52:44 +0100
commit87357a0ae16d4b86c5f2d6fa0dbbd57d00bf9c0b (patch)
tree264638e764c49fdff787041cfc0813aa010281f6
parentf3a59621b6e4ad1bf9a1aff528314e92671ba6b1 (diff)
fix CI warning
-rw-r--r--editor/imgui.cpp2
-rw-r--r--editor/inspect-draw.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/editor/imgui.cpp b/editor/imgui.cpp
index 81ecd59c..e25edb1f 100644
--- a/editor/imgui.cpp
+++ b/editor/imgui.cpp
@@ -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);
diff --git a/editor/inspect-draw.cpp b/editor/inspect-draw.cpp
index d5474b8b..ce1e3396 100644
--- a/editor/inspect-draw.cpp
+++ b/editor/inspect-draw.cpp
@@ -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);