Browse Source

Fix security warning

Rokas Kupstys 8 years ago
parent
commit
6aa2dec91f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Source/Atomic/UI/SystemUI/MessageBox.cpp

+ 1 - 1
Source/Atomic/UI/SystemUI/MessageBox.cpp

@@ -81,7 +81,7 @@ void MessageBox::RenderFrame(StringHash eventType, VariantMap& eventData)
     if (ImGui::Begin(titleText_.CString(), &isOpen_, windowSize_, -1, ImGuiWindowFlags_NoCollapse|
     if (ImGui::Begin(titleText_.CString(), &isOpen_, windowSize_, -1, ImGuiWindowFlags_NoCollapse|
                      ImGuiWindowFlags_NoSavedSettings))
                      ImGuiWindowFlags_NoSavedSettings))
     {
     {
-        ImGui::Text(messageText_.CString());
+        ImGui::TextUnformatted(messageText_.CString());
         auto region = ImGui::GetContentRegionAvail();
         auto region = ImGui::GetContentRegionAvail();
         ImGui::SetCursorPos(ImVec2(region.x - 100 + 20, region.y + 20));
         ImGui::SetCursorPos(ImVec2(region.x - 100 + 20, region.y + 20));