warnings: fix format-security warnings (#299)

This commit is contained in:
Russ
2021-09-15 18:02:16 +10:00
committed by GitHub
parent d3fb00d441
commit e1f410ceff
3 changed files with 7 additions and 7 deletions

View File

@@ -308,7 +308,7 @@ namespace hex {
if (ImGui::BeginPopupModal("hex.view.hexeditor.script.title"_lang, nullptr, ImGuiWindowFlags_AlwaysAutoResize)) {
ImGui::SetCursorPosX(10);
ImGui::TextWrapped("hex.view.hexeditor.script.desc"_lang);
ImGui::TextWrapped("%s", static_cast<const char *>("hex.view.hexeditor.script.desc"_lang));
ImGui::NewLine();
ImGui::InputText("##nolabel", this->m_loaderScriptScriptPath.data(), this->m_loaderScriptScriptPath.length(), ImGuiInputTextFlags_ReadOnly);