diff options
author | Damon Chaplin <damon@ximian.com> | 2001-11-10 06:30:59 +0800 |
---|---|---|
committer | Damon Chaplin <damon@src.gnome.org> | 2001-11-10 06:30:59 +0800 |
commit | 4eff83bee971f6f161f4c269c8d09e8d2b6ade58 (patch) | |
tree | 5cdec19712e74646121ccfb4de690212b2f1c659 /calendar | |
parent | 7d2baffd501420a0414f686ef0a35d0e71174661 (diff) | |
download | gsoc2013-evolution-4eff83bee971f6f161f4c269c8d09e8d2b6ade58.tar gsoc2013-evolution-4eff83bee971f6f161f4c269c8d09e8d2b6ade58.tar.gz gsoc2013-evolution-4eff83bee971f6f161f4c269c8d09e8d2b6ade58.tar.bz2 gsoc2013-evolution-4eff83bee971f6f161f4c269c8d09e8d2b6ade58.tar.lz gsoc2013-evolution-4eff83bee971f6f161f4c269c8d09e8d2b6ade58.tar.xz gsoc2013-evolution-4eff83bee971f6f161f4c269c8d09e8d2b6ade58.tar.zst gsoc2013-evolution-4eff83bee971f6f161f4c269c8d09e8d2b6ade58.zip |
fix buffer overflow. Fixes bug #10285 (the printing of lines & dates in
2001-11-09 Damon Chaplin <damon@ximian.com>
* gui/e-week-view-layout.c (e_week_view_layout_events): fix buffer
overflow. Fixes bug #10285 (the printing of lines & dates in the
printout of the month view).
svn path=/trunk/; revision=14650
Diffstat (limited to 'calendar')
-rw-r--r-- | calendar/ChangeLog | 6 | ||||
-rw-r--r-- | calendar/gui/e-week-view-layout.c | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/calendar/ChangeLog b/calendar/ChangeLog index 6e847e6de4..1ef3e03484 100644 --- a/calendar/ChangeLog +++ b/calendar/ChangeLog @@ -1,3 +1,9 @@ +2001-11-09 Damon Chaplin <damon@ximian.com> + + * gui/e-week-view-layout.c (e_week_view_layout_events): fix buffer + overflow. Fixes bug #10285 (the printing of lines & dates in the + printout of the month view). + 2001-11-09 Zbigniew Chyla <cyba@gnome.pl> * gui/dialogs/meeting-page.c diff --git a/calendar/gui/e-week-view-layout.c b/calendar/gui/e-week-view-layout.c index da9e8c5721..4ab1cf1fd9 100644 --- a/calendar/gui/e-week-view-layout.c +++ b/calendar/gui/e-week-view-layout.c @@ -79,7 +79,7 @@ e_week_view_layout_events (GArray *events, /* Clear the number of rows used per day. */ num_days = multi_week_view ? weeks_shown * 7 : 7; - for (day = 0; day <= num_days; day++) { + for (day = 0; day < num_days; day++) { rows_per_day[day] = 0; } |