CoreParameter: Kill off an snprintf usage

This commit is contained in:
Lioncash 2014-09-27 14:45:03 -04:00
parent 2f4d3961b3
commit a8d8c9230b

View file

@ -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;
}