From a4e1bb05f3022d7a474054e088ae7532f26ea468 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sat, 21 Apr 2018 19:26:55 +0200 Subject: [PATCH] Use proper format strings. --- server/TracyView.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/server/TracyView.cpp b/server/TracyView.cpp index 09052c26..75d29271 100644 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -3751,9 +3751,9 @@ void View::DrawFindZone() ImGui::NextColumn(); - ImGui::Text( TimeToString( ev->start - m_worker.GetFrameBegin( 0 ) ) ); + ImGui::Text( "%s", TimeToString( ev->start - m_worker.GetFrameBegin( 0 ) ) ); ImGui::NextColumn(); - ImGui::Text( TimeToString( timespan ) ); + ImGui::Text( "%s", TimeToString( timespan ) ); ImGui::NextColumn(); ImGui::PopID(); @@ -3978,7 +3978,7 @@ void View::ListMemData( T ptr, T end, std::function DrawAdd { sel = ImGui::Selectable( "", m_zoneInfoWindow == zoneFree ); ImGui::SameLine(); - ImGui::TextColored( ImVec4( 1.f, 1.f, 0.6f, 1.f ), txt ); + ImGui::TextColored( ImVec4( 1.f, 1.f, 0.6f, 1.f ), "%s", txt ); } else {