Satisfy GCC -Wformat-security with string literals

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

View File

@ -49,7 +49,7 @@ namespace ImGui {
void LeftLabel(const char* text) {
float vpos = ImGui::GetCursorPosY();
ImGui::SetCursorPosY(vpos + GImGui->Style.FramePadding.y);
ImGui::Text(text);
ImGui::Text("%s", text);
ImGui::SameLine();
ImGui::SetCursorPosY(vpos);
}
@ -57,4 +57,4 @@ namespace ImGui {
void FillWidth() {
ImGui::SetNextItemWidth(ImGui::GetContentRegionAvailWidth());
}
}
}