aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2012-10-24 16:45:56 +0200
committerCharles Kerr <charles.kerr@canonical.com>2012-10-24 16:45:56 +0200
commitef2b5d3c80fc35a11e165c5751c63d8763993e3a (patch)
tree61a40f9404911d453fd542f0b44e7bb9727110fc /src
parent1fa395e1c85b7523c1f57410329e12569c0c7aa2 (diff)
parent5c9f6467b9a8573439d1bee52a358678b10e5805 (diff)
downloadayatana-indicator-datetime-ef2b5d3c80fc35a11e165c5751c63d8763993e3a.tar.gz
ayatana-indicator-datetime-ef2b5d3c80fc35a11e165c5751c63d8763993e3a.tar.bz2
ayatana-indicator-datetime-ef2b5d3c80fc35a11e165c5751c63d8763993e3a.zip
fix off-by-one error in the appointments dbusmenuitem array
Diffstat (limited to 'src')
-rw-r--r--src/datetime-service.c2
1 files changed, 1 insertions, 1 deletions
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);