From eb3e926b09538f22ac115ce0f18ac7530dc2dc87 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Fri, 30 Jul 2010 16:44:25 -0400 Subject: [PATCH] Fix an off-by-one error --- gio/gapplication.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gio/gapplication.c b/gio/gapplication.c index c4b2b248f..9cc59b294 100644 --- a/gio/gapplication.c +++ b/gio/gapplication.c @@ -747,7 +747,7 @@ g_application_list_actions (GApplication *application) priv = application->priv; - retval = g_new (gchar*, g_hash_table_size (priv->actions)); + retval = g_new (gchar*, g_hash_table_size (priv->actions) + 1); i = 0; g_hash_table_iter_init (&iter, priv->actions);