Skip to content

Commit 06a83d7

Browse files
fix format security warnings (pt. 2)
Fixes build with -Wformat-security. see: #1250
1 parent b682c4b commit 06a83d7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/gui/widgets/named_savestates.cc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,9 @@ void PCSX::Widgets::NamedSaveStates::draw(GUI* gui, const char* title) {
7777
float posY = ImGui::GetCursorPosY();
7878
ImGui::SetCursorPosY(posY + verticalAlignAdjust);
7979

80-
ImGui::Text(_("Filename: "));
80+
ImGui::TextUnformatted(_("Filename: "));
8181
ImGui::SameLine();
82-
ImGui::Text(gui->getSaveStatePrefix(true).c_str());
82+
ImGui::TextUnformatted(gui->getSaveStatePrefix(true).c_str());
8383
ImGui::SameLine(0.0f, 0.0f);
8484

8585
// Restore the vertical value
@@ -115,7 +115,7 @@ void PCSX::Widgets::NamedSaveStates::draw(GUI* gui, const char* title) {
115115

116116
// Trailing text alignment also needs adjusting, but in the opposite direction
117117
ImGui::SetCursorPosY(ImGui::GetCursorPosY() - verticalAlignAdjust);
118-
ImGui::Text(gui->getSaveStatePostfix().c_str());
118+
ImGui::TextUnformatted(gui->getSaveStatePostfix().c_str());
119119

120120
ImGui::Separator();
121121

0 commit comments

Comments
 (0)