Satisfy GCC -Wformat-security with TextUnformatted

This commit is contained in:
Christopher Hewitt
2022-01-25 14:02:52 -07:00
parent 2c3b603b88
commit aa265ea312
6 changed files with 10 additions and 10 deletions

View File

@ -433,7 +433,7 @@ namespace ImGui {
char buf[128];
ImGui::BeginTooltip();
ImGui::Text("%s", name.c_str());
ImGui::TextUnformatted(name.c_str());
if (ImGui::IsKeyDown(GLFW_KEY_LEFT_CONTROL) || ImGui::IsKeyDown(GLFW_KEY_RIGHT_CONTROL)) {
ImGui::Separator();