Skip to content

Commit

Permalink
Merge pull request xbmc#17355 from disconnect3d/patch-1
Browse files Browse the repository at this point in the history
Fix strnicmp size argument in AdvancedSettings
  • Loading branch information
fritsch authored and Maven85 committed Feb 17, 2020
1 parent 2500041 commit 37fb86d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xbmc/settings/AdvancedSettings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -858,7 +858,7 @@ void CAdvancedSettings::ParseSettingsFile(const std::string &file)
// as altering it will do nothing - we don't write to advancedsettings.xml
XMLUtils::GetInt(pRootElement, "loglevel", m_logLevelHint, LOG_LEVEL_NONE, LOG_LEVEL_MAX);
const char* hide = pElement->Attribute("hide");
if (hide == NULL || strnicmp("false", hide, 4) != 0)
if (hide == NULL || strnicmp("false", hide, 5) != 0)
{
SettingPtr setting = CServiceBroker::GetSettingsComponent()->GetSettings()->GetSetting(CSettings::SETTING_DEBUG_SHOWLOGINFO);
if (setting != NULL)
Expand Down

0 comments on commit 37fb86d

Please sign in to comment.