aboutsummaryrefslogtreecommitdiffstats
path: root/x11-toolkits
diff options
context:
space:
mode:
authormarcus <marcus@FreeBSD.org>2007-07-10 12:38:08 +0800
committermarcus <marcus@FreeBSD.org>2007-07-10 12:38:08 +0800
commitcf76cac4a2b6625dd29a6f75159cbb2558c05b6d (patch)
treecf2f54c152fed3fcf5dea2f7b1d1c725fc805b6c /x11-toolkits
parent81e6f8673c9e426d8ef5a75f38e6e506e36daf9d (diff)
downloadfreebsd-ports-gnome-cf76cac4a2b6625dd29a6f75159cbb2558c05b6d.tar.gz
freebsd-ports-gnome-cf76cac4a2b6625dd29a6f75159cbb2558c05b6d.tar.zst
freebsd-ports-gnome-cf76cac4a2b6625dd29a6f75159cbb2558c05b6d.zip
Fix a segfault when running anjuta.
Reported by: Leszek Lach <leszeklach@gmail.com>
Diffstat (limited to 'x11-toolkits')
-rw-r--r--x11-toolkits/gdl/Makefile1
-rw-r--r--x11-toolkits/gdl/files/patch-gdl_gdl-switcher.c10
2 files changed, 11 insertions, 0 deletions
diff --git a/x11-toolkits/gdl/Makefile b/x11-toolkits/gdl/Makefile
index c1a3be7121d4..03be665bf16e 100644
--- a/x11-toolkits/gdl/Makefile
+++ b/x11-toolkits/gdl/Makefile
@@ -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}
diff --git a/x11-toolkits/gdl/files/patch-gdl_gdl-switcher.c b/x11-toolkits/gdl/files/patch-gdl_gdl-switcher.c
new file mode 100644
index 000000000000..53f0d747c7cd
--- /dev/null
+++ b/x11-toolkits/gdl/files/patch-gdl_gdl-switcher.c
@@ -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);