summaryrefslogtreecommitdiff
path: root/x11/fspanel/patches
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2005-03-17 15:49:54 +0000
committerwiz <wiz@pkgsrc.org>2005-03-17 15:49:54 +0000
commitc500881deded1250600889d73506cfa9139af876 (patch)
treea2611e421722e63ba2d9ad31451d17e3def2a2fe /x11/fspanel/patches
parentd7b95a192c7410071181e1ae41f10d433486fb7f (diff)
downloadpkgsrc-c500881deded1250600889d73506cfa9139af876.tar.gz
Fix a coredump bug. Reported by Brian de Alwis in PR 24416.
Diffstat (limited to 'x11/fspanel/patches')
-rw-r--r--x11/fspanel/patches/patch-ab17
1 files changed, 17 insertions, 0 deletions
diff --git a/x11/fspanel/patches/patch-ab b/x11/fspanel/patches/patch-ab
new file mode 100644
index 00000000000..66f18d58132
--- /dev/null
+++ b/x11/fspanel/patches/patch-ab
@@ -0,0 +1,17 @@
+$NetBSD: patch-ab,v 1.1 2005/03/17 15:49:54 wiz Exp $
+
+--- fspanel.c.orig 2002-06-23 07:12:50.000000000 +0200
++++ fspanel.c
+@@ -559,10 +559,10 @@ gui_draw_task (task *tk)
+
+ /* check how many chars can fit */
+ len = strlen (tk->name);
+- while (1)
++ while (len > 0)
+ {
+ XftTextExtents8 (dd, xfs, tk->name, len, &ext);
+- if (ext.width < taskw - (text_x - x) - 2 && len > 0)
++ if (ext.width < taskw - (text_x - x) - 2)
+ break;
+ len--;
+ }