From 5ba0fa8617c333c609cfd746c37465f33f43f8b1 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Fri, 22 Sep 2017 22:23:06 +0200 Subject: [PATCH] Text string is not a format string. --- server/TracyView.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/TracyView.cpp b/server/TracyView.cpp index 2c23cbb1..4d4b5870 100755 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -813,7 +813,7 @@ void View::DrawZones() if( hover && ImGui::IsMouseHoveringRect( wpos + ImVec2( ( fbegin - m_zvStart ) * pxns, 0 ), wpos + ImVec2( ( fend - m_zvStart ) * pxns, tsz.y ) ) ) { ImGui::BeginTooltip(); - ImGui::Text( buf ); + ImGui::Text( "%s", buf ); ImGui::Text( "Time from start of program: %s", TimeToString( m_frames[i] - m_frames[0] ) ); ImGui::EndTooltip(); } @@ -887,7 +887,7 @@ void View::DrawZones() if( hover && ImGui::IsMouseHoveringRect( wpos + ImVec2( ( ev.start - m_zvStart ) * pxns, offset ), wpos + ImVec2( ( ev.end - m_zvStart ) * pxns, offset + tsz.y ) ) ) { ImGui::BeginTooltip(); - ImGui::Text( func ); + ImGui::Text( "%s", func ); ImGui::Text( "%s:%i", GetString( srcFile.filename ), srcFile.line ); ImGui::Text( "Execution time: %s", TimeToString( ev.end - ev.start ) ); ImGui::EndTooltip();