Fix a segfault when running anjuta.

Reported by:	Leszek Lach <leszeklach@gmail.com>
This commit is contained in:
Joe Marcus Clarke 2007-07-10 04:38:08 +00:00
parent bec6bb1f6e
commit 8b2bbaae6b
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=195340
2 changed files with 11 additions and 0 deletions

View file

@ -8,6 +8,7 @@
PORTNAME= gdl
PORTVERSION= 0.7.6
PORTREVISION= 1
CATEGORIES= x11-toolkits gnome
MASTER_SITES= ${MASTER_SITE_GNOME}
MASTER_SITE_SUBDIR= sources/${PORTNAME}/${PORTVERSION:R}

View file

@ -0,0 +1,10 @@
--- gdl/gdl-switcher.c.orig Tue Jul 10 00:35:38 2007
+++ gdl/gdl-switcher.c Tue Jul 10 00:34:14 2007
@@ -285,6 +285,7 @@ layout_buttons (GdlSwitcher *switcher)
}
rows_count = num_btns / btns_per_row;
+ rows_count += (num_btns % btns_per_row == 0) ? 0 : 1;
/* Assign buttons to rows */
rows = g_new0 (GSList *, rows_count);