mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 20:01:11 +00:00
Fix boundary error in matrix memory
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@5325 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
613f35cdb8
commit
2f851bceef
1 changed files with 1 additions and 1 deletions
|
@ -2500,7 +2500,7 @@ static SEL getSel = @selector(objectAtIndex:);
|
|||
selectedCells[i] = NSZoneRealloc(GSAtomicMallocZone(),
|
||||
selectedCells[i], col * sizeof(BOOL));
|
||||
|
||||
for (j = oldMaxC - 1; j < col; j++)
|
||||
for (j = oldMaxC; j < col; j++)
|
||||
{
|
||||
cells[i][j] = nil;
|
||||
selectedCells[i][j] = NO;
|
||||
|
|
Loading…
Reference in a new issue