freebsd-ports/x11/gnome-menus/files/patch-bugzilla-312502
Joe Marcus Clarke 3029fafde3 Fix a crash that can occur in gnome-panel when GNOME and KDE are on the
same machine.  See http://bugzilla.gnome.org/show_bug.cgi?id=312502 for
more details.

PR:		84594
Submitted by:	Marcus Grando <marcus@corp.grupos.com.br>
Obtained from:	GNOME CVS
Approved by:	portmgr (implicit)
2005-08-06 06:28:17 +00:00

12 lines
397 B
Text

diff -u -p -r1.7.4.1 desktop-entries.c
--- libmenu/desktop-entries.c 5 Apr 2005 21:04:31 -0000 1.7.4.1
+++ libmenu/desktop-entries.c 5 Aug 2005 07:57:37 -0000
@@ -554,7 +554,7 @@ desktop_entry_add_legacy_category (Deskt
for (; entry->categories[i]; i++);
}
- categories = g_new0 (GQuark, i + 1);
+ categories = g_new0 (GQuark, i + 2);
i = 0;
if (entry->categories != NULL)