From a8d8c9230b2fac663f92445d8d1db0bc6d9706b6 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Sat, 27 Sep 2014 14:45:03 -0400 Subject: [PATCH] CoreParameter: Kill off an snprintf usage --- Source/Core/Core/CoreParameter.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Source/Core/Core/CoreParameter.cpp b/Source/Core/Core/CoreParameter.cpp index a538bcd1b7..ab68a12a78 100644 --- a/Source/Core/Core/CoreParameter.cpp +++ b/Source/Core/Core/CoreParameter.cpp @@ -280,14 +280,13 @@ bool SCoreStartupParameter::AutoSetup(EBootBS2 _BootBS2) // Use the TitleIDhex for name and/or unique ID if launching from nand folder // or if it is not ascii characters (specifically sysmenu could potentially apply to other things) - char titleidstr[17]; - snprintf(titleidstr, 17, "%016" PRIx64, ContentLoader.GetTitleID()); + std::string titleidstr = StringFromFormat("%016" PRIx64, ContentLoader.GetTitleID()); - if (!m_strName.length()) + if (m_strName.empty()) { m_strName = titleidstr; } - if (!m_strUniqueID.length()) + if (m_strUniqueID.empty()) { m_strUniqueID = titleidstr; }