From 4eff83bee971f6f161f4c269c8d09e8d2b6ade58 Mon Sep 17 00:00:00 2001 From: Damon Chaplin Date: Fri, 9 Nov 2001 22:30:59 +0000 Subject: fix buffer overflow. Fixes bug #10285 (the printing of lines & dates in 2001-11-09 Damon Chaplin * 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 --- calendar/gui/e-week-view-layout.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'calendar/gui/e-week-view-layout.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; } -- cgit v1.2.3