winefile: Avoid array overrun (coverity).

This commit is contained in:
Marcus Meissner 2009-01-24 09:52:36 +01:00 committed by Alexandre Julliard
parent 3184dc9125
commit 9a0a89271e
1 changed files with 1 additions and 1 deletions

View File

@ -2732,7 +2732,7 @@ static void calc_single_width(Pane* pane, int col)
x = pane->positions[col] + cx;
for(; col<COLUMNS; ) {
for(; col<COLUMNS-1; ) {
pane->positions[++col] = x;
x += pane->widths[col];
}