Litecoin: Copyright fuzzer

This commit is contained in:
Adrian Gallagher 2020-12-14 22:22:55 -08:00
parent 6ad27338b5
commit aa4f5514d5
No known key found for this signature in database
GPG Key ID: FE3348877809386C

View File

@ -1286,9 +1286,11 @@ std::string CopyrightHolders(const std::string& strPrefix)
// Make sure Bitcoin Core copyright is not removed by accident
if (copyright_devs.find("Bitcoin Core") == std::string::npos) {
std::string strYear = strPrefix;
strYear.replace(strYear.find("2011"), sizeof("2011")-1, "2009");
strCopyrightHolders += "\n" + strYear + "The Bitcoin Core developers";
if (strPrefix.find("2011") != std::string::npos) {
std::string strYear = strPrefix;
strYear.replace(strYear.find("2011"), sizeof("2011")-1, "2009");
strCopyrightHolders += "\n" + strYear + "The Bitcoin Core developers";
}
}
return strCopyrightHolders;
}