mirror of
https://github.com/fltk/fltk.git
synced 2026-05-21 06:21:26 +08:00
Fixes STR #3113 memory overrun
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10225 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
+1
-1
@@ -199,7 +199,7 @@ void Fl_Table::col_width(int col, int width)
|
||||
// Add column widths, even if none yet
|
||||
int now_size = (int)_colwidths.size();
|
||||
if ( col >= now_size ) {
|
||||
_colwidths.size(col);
|
||||
_colwidths.size(col+1);
|
||||
while (now_size < col) {
|
||||
_colwidths[now_size++] = width;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user