#679: fix strncasecmp size parameter off by ones

This commit is contained in:
Disconnect3d
2020-04-20 19:36:01 +02:00
committed by GitHub
parent a124a91a84
commit 575b823758

View File

@@ -2238,7 +2238,7 @@ void DownloadXmlCommand::Execute()
}
}
if (!strncasecmp(nzbContent, "http://", 6) || !strncasecmp(nzbContent, "https://", 7))
if (!strncasecmp(nzbContent, "http://", 7) || !strncasecmp(nzbContent, "https://", 8))
{
// add url
std::unique_ptr<NzbInfo> nzbInfo = std::make_unique<NzbInfo>();