From 907da3265d7a38152cc317209303638774d2342d Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Fri, 31 Aug 2018 20:08:04 +0200 Subject: [PATCH] Fix string handling. --- server/TracyImGui.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/TracyImGui.hpp b/server/TracyImGui.hpp index 703eb905..385e9155 100644 --- a/server/TracyImGui.hpp +++ b/server/TracyImGui.hpp @@ -16,7 +16,7 @@ namespace tracy { const auto tw = ImGui::CalcTextSize( text ).x; ImGui::SetCursorPosX( ( ImGui::GetWindowWidth() - tw ) * 0.5f ); - ImGui::Text( text ); + ImGui::Text( "%s", text ); } }