File libxfcegui4-4.6.1-overflow.patch of Package libxfcegui4

Index: libxfcegui4-4.6.1/libxfce4kbd-private/xfce-shortcuts-provider.c
===================================================================
--- libxfcegui4-4.6.1.orig/libxfce4kbd-private/xfce-shortcuts-provider.c
+++ libxfcegui4-4.6.1/libxfce4kbd-private/xfce-shortcuts-provider.c
@@ -288,7 +288,7 @@ xfce_shortcuts_provider_register (XfceSh
 
   if (G_UNLIKELY (!already_registered))
     {
-      names = g_new0 (const gchar *, length + 1);
+      names = g_new0 (const gchar *, length + 3);
       for (i = 0; provider_names != NULL && provider_names[i] != NULL; ++i)
         names[i] = provider_names[i];
       names[i++] = xfce_shortcuts_provider_get_name (provider);
openSUSE Build Service is sponsored by