Satisfy GCC -Wformat-security with string literals
This commit is contained in:
@@ -43,10 +43,10 @@ namespace module_manager_menu {
|
||||
ImGui::TableNextRow();
|
||||
|
||||
ImGui::TableSetColumnIndex(0);
|
||||
ImGui::Text(name.c_str());
|
||||
ImGui::Text("%s", name.c_str());
|
||||
|
||||
ImGui::TableSetColumnIndex(1);
|
||||
ImGui::Text(inst.module.info->name);
|
||||
ImGui::Text("%s", inst.module.info->name);
|
||||
|
||||
ImGui::TableSetColumnIndex(2);
|
||||
ImVec2 origPos = ImGui::GetCursorPos();
|
||||
@@ -69,7 +69,7 @@ namespace module_manager_menu {
|
||||
}
|
||||
|
||||
ImGui::GenericDialog("module_mgr_error_", errorOpen, GENERIC_DIALOG_BUTTONS_OK, []() {
|
||||
ImGui::Text(errorMessage.c_str());
|
||||
ImGui::Text("%s", errorMessage.c_str());
|
||||
});
|
||||
|
||||
// Add module row with slightly different settings
|
||||
@@ -114,4 +114,4 @@ namespace module_manager_menu {
|
||||
core::configManager.release(true);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user