mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-03 14:08:57 +00:00
Fix what seems like a clear buffer overflow, noticed by cppcheck.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@108629 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
7490896f9d
commit
cba3da0d96
@ -35,7 +35,7 @@ GetLowerCasePartDefine(void) {
|
||||
}
|
||||
|
||||
std::string LowerCase;
|
||||
for (unsigned i = 0; i <= Partname.size(); i++) {
|
||||
for (unsigned i = 0; i < Partname.size(); i++) {
|
||||
LowerCase.push_back(std::tolower(Partname[i]));
|
||||
}
|
||||
|
||||
@ -52,7 +52,7 @@ GetUpperCasePartDefine(void) {
|
||||
}
|
||||
|
||||
std::string UpperCase;
|
||||
for (unsigned i = 0; i <= Partname.size(); i++) {
|
||||
for (unsigned i = 0; i < Partname.size(); i++) {
|
||||
UpperCase.push_back(std::toupper(Partname[i]));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user