diff options
| author | Greg Ercolano <erco@seriss.com> | 2014-08-03 16:40:58 +0000 |
|---|---|---|
| committer | Greg Ercolano <erco@seriss.com> | 2014-08-03 16:40:58 +0000 |
| commit | cd3ca84e71272d8664205305f81f49444b653292 (patch) | |
| tree | 6e1cbb9eb5d248fb9be75ae4ed54467b449118b1 /src | |
| parent | fbfac0f6ccb74f3d7129cc8764ffba4033882d47 (diff) | |
Fixes STR #3113 memory overrun
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10225 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src')
| -rw-r--r-- | src/Fl_Table.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Fl_Table.cxx b/src/Fl_Table.cxx index ef2137e42..af7cb28fc 100644 --- a/src/Fl_Table.cxx +++ b/src/Fl_Table.cxx @@ -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; } |
