enabling warn format security and some fixes
Signed-off-by: Esteban Papp <81431996+amznestebanpapp@users.noreply.github.com>
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user