mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-10 03:16:17 +01:00
Fix an off-by-one error
This commit is contained in:
parent
5033be80d1
commit
eb3e926b09
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user