diff options
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | src/bookmarks/ephy-topic-action.c | 2 |
2 files changed, 8 insertions, 1 deletions
@@ -1,5 +1,12 @@ 2005-08-21 Christian Persch <chpe@cvs.gnome.org> + * src/bookmarks/ephy-topic-action.c: + (ephy_topic_action_sync_label): + + Use strlen, not hardcoded length. + +2005-08-21 Christian Persch <chpe@cvs.gnome.org> + * src/ephy-tab.c: (ephy_tab_finalize): Fix mem leak. diff --git a/src/bookmarks/ephy-topic-action.c b/src/bookmarks/ephy-topic-action.c index fc9716086..4885d2af6 100644 --- a/src/bookmarks/ephy-topic-action.c +++ b/src/bookmarks/ephy-topic-action.c @@ -211,7 +211,7 @@ ephy_topic_action_sync_label (GtkAction *gaction, separator = g_strrstr (title, BOOKMARKS_HIERARCHY_SEP); gtk_label_set_label (GTK_LABEL (label), - separator != NULL ? separator + 2 : title); + separator != NULL ? separator + strlen(BOOKMARKS_HIERARCHY_SEP) : title); g_free (title); } |