mirror of
https://github.com/reactos/reactos.git
synced 2024-07-06 12:45:16 +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
|
@ -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