diff options
author | marcus <marcus@FreeBSD.org> | 2007-07-10 12:38:08 +0800 |
---|---|---|
committer | marcus <marcus@FreeBSD.org> | 2007-07-10 12:38:08 +0800 |
commit | cf76cac4a2b6625dd29a6f75159cbb2558c05b6d (patch) | |
tree | cf2f54c152fed3fcf5dea2f7b1d1c725fc805b6c | |
parent | 81e6f8673c9e426d8ef5a75f38e6e506e36daf9d (diff) | |
download | freebsd-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>
-rw-r--r-- | x11-toolkits/gdl/Makefile | 1 | ||||
-rw-r--r-- | x11-toolkits/gdl/files/patch-gdl_gdl-switcher.c | 10 |
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); |