mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 19:26:32 +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:
@@ -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];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user