Merge pull request #305 from magumagu/movie-scanf

Movie: don't use "hh" scanf modifier.
This commit is contained in:
Ryan Houdek 2014-04-30 20:01:27 -05:00
commit c5d506142f
1 changed files with 3 additions and 3 deletions

View File

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