mirror of
https://github.com/nzbget/nzbget.git
synced 2025-12-23 22:27:45 -05:00
#679: fix strncasecmp size parameter off by ones
This commit is contained in:
@@ -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>();
|
||||
|
||||
Reference in New Issue
Block a user