Movie: don't use "hh" scanf modifier.

Attempting to use it with Visual Studio is a good way to corrupt the stack.
This commit is contained in:
magumagu 2014-04-23 14:51:59 -07:00
parent 13b1ff5160
commit 78292e5d18
1 changed files with 3 additions and 3 deletions

View File

@ -1192,11 +1192,11 @@ void GetSettings()
if (!Core::g_CoreStartupParameter.bWii) if (!Core::g_CoreStartupParameter.bWii)
g_bClearSave = !File::Exists(SConfig::GetInstance().m_strMemoryCardA); g_bClearSave = !File::Exists(SConfig::GetInstance().m_strMemoryCardA);
bMemcard = SConfig::GetInstance().m_EXIDevice[0] == EXIDEVICE_MEMORYCARD; bMemcard = SConfig::GetInstance().m_EXIDevice[0] == EXIDEVICE_MEMORYCARD;
u8 tmp[21]; unsigned int tmp;
for (int i = 0; i < 20; ++i) for (int i = 0; i < 20; ++i)
{ {
sscanf(&scm_rev_git_str[2 * i], "%02hhx", &tmp[i]); sscanf(&scm_rev_git_str[2 * i], "%02x", &tmp);
revision[i] = tmp[i]; revision[i] = tmp;
} }
} }