mirror of
https://github.com/reactos/reactos.git
synced 2025-02-20 15:35:04 +00:00
Fix a legitimate overrun in _widths (coverity 575), and try not to be as
clever. svn path=/trunk/; revision=36421
This commit is contained in:
parent
91ae271e19
commit
a6b7e20ad4
1 changed files with 2 additions and 2 deletions
|
@ -774,8 +774,8 @@ void Pane::calc_single_width(int col)
|
|||
|
||||
x = _positions[col] + cx;
|
||||
|
||||
for(; col<COLUMNS; ) {
|
||||
_positions[++col] = x;
|
||||
for(; col<COLUMNS; col++) {
|
||||
_positions[col+1] = x;
|
||||
x += _widths[col];
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue