From 5c9f6467b9a8573439d1bee52a358678b10e5805 Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Tue, 9 Oct 2012 11:59:12 -0500 Subject: fix off-by-one error in the appointments dbusmenuitem array --- src/datetime-service.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/datetime-service.c b/src/datetime-service.c index f0c45c0..b34c23e 100644 --- a/src/datetime-service.c +++ b/src/datetime-service.c @@ -833,8 +833,8 @@ update_appointment_menu_items (gpointer unused) if (i >= MAX_APPOINTMENT_MENUITEMS) continue; - i++; item = appointments[i]; + i++; /* Remove the icon as we might not replace it on error */ dbusmenu_menuitem_property_remove(item, APPOINTMENT_MENUITEM_PROP_ICON); -- cgit v1.2.3