[glib] Fix an off-by-one error
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] Fix an off-by-one error
- Date: Fri, 30 Jul 2010 23:59:39 +0000 (UTC)
commit eb3e926b09538f22ac115ce0f18ac7530dc2dc87
Author: Matthias Clasen <mclasen redhat com>
Date: Fri Jul 30 16:44:25 2010 -0400
Fix an off-by-one error
gio/gapplication.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gio/gapplication.c b/gio/gapplication.c
index c4b2b24..9cc59b2 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]