aboutsummaryrefslogtreecommitdiffstats
path: root/x11-wm/wmii
diff options
context:
space:
mode:
authordanfe <danfe@FreeBSD.org>2009-09-11 22:11:03 +0800
committerdanfe <danfe@FreeBSD.org>2009-09-11 22:11:03 +0800
commita1350d9b35c4973262c901865b4145c49f6b5617 (patch)
treed94943134420353a655a245e85d402b5a2d271fc /x11-wm/wmii
parentf2cb0d26719ad30a3ca28db022997d49f2a0ec3b (diff)
downloadfreebsd-ports-graphics-a1350d9b35c4973262c901865b4145c49f6b5617.tar.gz
freebsd-ports-graphics-a1350d9b35c4973262c901865b4145c49f6b5617.tar.zst
freebsd-ports-graphics-a1350d9b35c4973262c901865b4145c49f6b5617.zip
Fix a potential crash. I was able to trigger it only with non-UTF8 build
(which is not default) and only with Arora when visiting one specific page, so leave PORTREVISION as is.
Diffstat (limited to 'x11-wm/wmii')
-rw-r--r--x11-wm/wmii/files/patch-no-utf813
1 files changed, 13 insertions, 0 deletions
diff --git a/x11-wm/wmii/files/patch-no-utf8 b/x11-wm/wmii/files/patch-no-utf8
index 77b57af98e7..366fa45037b 100644
--- a/x11-wm/wmii/files/patch-no-utf8
+++ b/x11-wm/wmii/files/patch-no-utf8
@@ -89,3 +89,16 @@
*ret = list;
XFree(prop.value);
}
+@@ -653,9 +659,10 @@
+ str = nil;
+
+ n = gettextlistproperty(w, name, &list);
+- if(n > 0)
++ if(n > 0 && list) {
+ str = estrdup(*list);
+- freestringlist(list);
++ freestringlist(list);
++ }
+
+ return str;
+ }