aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog6
-rw-r--r--src/ephy-tabs-menu.c2
2 files changed, 7 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 0bf09d009..288ce3d39 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
2005-12-05 Christian Persch <chpe@cvs.gnome.org>
+ * src/ephy-tabs-menu.c: (tab_set_action_accelerator):
+
+ Use sizeof() here.
+
+2005-12-05 Christian Persch <chpe@cvs.gnome.org>
+
* lib/ephy-langs.c:
Updated comment to refer to the schema autogeneration tool.
diff --git a/src/ephy-tabs-menu.c b/src/ephy-tabs-menu.c
index 90d6b91ed..98a0cfeca 100644
--- a/src/ephy-tabs-menu.c
+++ b/src/ephy-tabs-menu.c
@@ -385,7 +385,7 @@ tab_set_action_accelerator (GtkActionGroup *action_group,
accel_key = 0;
accel_number = (tab_number + 1) % 10;
- g_snprintf (accel, 7, "<alt>%d", accel_number);
+ g_snprintf (accel, sizeof (accel), "<alt>%d", accel_number);
gtk_accelerator_parse (accel, &accel_key, &accel_mods);