aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/gnome-cal.c
diff options
context:
space:
mode:
Diffstat (limited to 'calendar/gui/gnome-cal.c')
-rw-r--r--calendar/gui/gnome-cal.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/calendar/gui/gnome-cal.c b/calendar/gui/gnome-cal.c
index 8b9510dba5..eb7605d8df 100644
--- a/calendar/gui/gnome-cal.c
+++ b/calendar/gui/gnome-cal.c
@@ -1838,7 +1838,7 @@ append_category_cb (gpointer key, gpointer value, gpointer data)
c = data;
g_ptr_array_set_size (c, c->len + 1);
- c->pdata[c->len] = g_strdup (category);
+ c->pdata[c->len - 1] = g_strdup (category);
}
@@ -1874,7 +1874,7 @@ client_categories_changed_cb (ECal *ecal, GPtrArray *categories, gpointer data)
merged = g_ptr_array_sized_new (g_hash_table_size (cat_hash));
g_ptr_array_set_size (merged, 0);
- g_hash_table_foreach (cat_hash, append_category_cb, &merged);
+ g_hash_table_foreach (cat_hash, append_category_cb, merged);
g_hash_table_destroy (cat_hash);
cal_search_bar_set_categories (CAL_SEARCH_BAR (priv->search_bar), merged);