enabling warn format security and some fixes

Signed-off-by: Esteban Papp <81431996+amznestebanpapp@users.noreply.github.com>
This commit is contained in:
Esteban Papp
2021-08-30 16:10:08 -07:00
parent cdcdcb0777
commit 0df55c3a7f
10 changed files with 15 additions and 21 deletions
@@ -200,7 +200,7 @@ namespace AssetMemoryAnalyzer
switch (ap->m_codePoint->m_category)
{
case AllocationCategories::HEAP:
ImGui::Text(FormatUtils::FormatCodePoint(*ap->m_codePoint));
ImGui::Text("%s", FormatUtils::FormatCodePoint(*ap->m_codePoint));
heapSummary.m_allocationCount = static_cast<uint32_t>(ap->m_allocations.size());
heapSummary.m_allocatedMemory = ap->m_totalAllocatedMemory;
break;
@@ -247,7 +247,7 @@ namespace AssetMemoryAnalyzer
{
if (text)
{
ImGui::Text(text);
ImGui::Text("%s", text);
ImGui::SameLine();
}