From 8c8a2ab2489c23eca83e3154f3599b4066edd5d3 Mon Sep 17 00:00:00 2001 From: yerejm Date: Sun, 14 Jun 2015 16:49:35 +1000 Subject: [PATCH] Reinstate format string. Avoid the consequences in the unlikely event the path includes a %. --- Source/Core/DiscIO/DiscScrubber.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Core/DiscIO/DiscScrubber.cpp b/Source/Core/DiscIO/DiscScrubber.cpp index e1b46450c4..046e0f8719 100644 --- a/Source/Core/DiscIO/DiscScrubber.cpp +++ b/Source/Core/DiscIO/DiscScrubber.cpp @@ -313,7 +313,7 @@ bool ParsePartitionData(SPartition& _rPartition) // Go through the filesystem and mark entries as used for (SFileInfo file : filesystem->GetFileList()) { - DEBUG_LOG(DISCIO, file.m_FullPath.empty() ? "/" : file.m_FullPath.c_str()); + DEBUG_LOG(DISCIO, "%s", file.m_FullPath.empty() ? "/" : file.m_FullPath.c_str()); // Just 1byte for directory? - it will end up reserving a cluster this way if (file.m_NameOffset & 0x1000000) MarkAsUsedE(_rPartition.Offset + _rPartition.Header.DataOffset, file.m_Offset, 1);