Use proper string formatting.

This commit is contained in:
Bartosz Taudul 2020-06-18 01:32:53 +02:00
parent a8c752e2ab
commit 11e1671048

View File

@ -12656,7 +12656,7 @@ void View::DrawInfo()
pdqsort_branchless( vec.begin(), vec.end(), []( const auto& lhs, const auto& rhs ) { return strcmp( lhs->first, rhs->first ) < 0; } );
for( auto& v : vec )
{
ImGui::BulletText( v->first );
ImGui::BulletText( "%s", v->first );
if( ImGui::IsItemClicked() ) ViewSource( v->first, 0 );
ImGui::SameLine();
ImGui::TextDisabled( "(%s)", MemSizeToString( v->second.len ) );