Skip to content

Commit

Permalink
Merge pull request #305 from magumagu/movie-scanf
Browse files Browse the repository at this point in the history
Movie: don't use "hh" scanf modifier.
  • Loading branch information
Sonicadvance1 committed May 1, 2014
2 parents 7f00cae + 78292e5 commit c5d5061
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Source/Core/Core/Movie.cpp
Expand Up @@ -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;
}
}

Expand Down

0 comments on commit c5d5061

Please sign in to comment.