mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-03 17:59:46 +02:00
Fix loop counter
This commit is contained in:
parent
717cb2a0ce
commit
a9d24753ee
1 changed files with 2 additions and 1 deletions
|
@ -157,7 +157,8 @@ public class DataTypeTreeCopyMoveTask extends Task {
|
||||||
if (n > 1) {
|
if (n > 1) {
|
||||||
message = "Encountered " + n + " errors copying/moving. See the log for details";
|
message = "Encountered " + n + " errors copying/moving. See the log for details";
|
||||||
|
|
||||||
for (int i = 0; i < 10; i++) {
|
int max = n < 10 ? n : 10;
|
||||||
|
for (int i = 0; i < max; i++) {
|
||||||
Msg.error(this, errors.get(i));
|
Msg.error(this, errors.get(i));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue