summaryrefslogtreecommitdiffstats
path: root/x11-wm/windowmaker
diff options
context:
space:
mode:
authorsobomax <sobomax@FreeBSD.org>2001-10-25 08:17:10 +0000
committersobomax <sobomax@FreeBSD.org>2001-10-25 08:17:10 +0000
commit709a4db92c486d93bed92ff18a7547a8db0f8de9 (patch)
tree83a58e3a2b6a5d68d0f1f541e38c8a3795a8ffb8 /x11-wm/windowmaker
parentff2faf0c62786bc45106d6ce71cd30caec2e70a5 (diff)
downloadFreeBSD-ports-709a4db92c486d93bed92ff18a7547a8db0f8de9.zip
FreeBSD-ports-709a4db92c486d93bed92ff18a7547a8db0f8de9.tar.gz
Fix a potential segfault.
Submitted by: tg
Diffstat (limited to 'x11-wm/windowmaker')
-rw-r--r--x11-wm/windowmaker/Makefile1
-rw-r--r--x11-wm/windowmaker/files/patch-WINGs::findfile.c22
2 files changed, 23 insertions, 0 deletions
diff --git a/x11-wm/windowmaker/Makefile b/x11-wm/windowmaker/Makefile
index d4cc683..1776cba 100644
--- a/x11-wm/windowmaker/Makefile
+++ b/x11-wm/windowmaker/Makefile
@@ -7,6 +7,7 @@
PORTNAME= windowmaker
PORTVERSION= 0.70.0
+PORTREVISION= 1
CATEGORIES= x11-wm windowmaker
MASTER_SITES= ${MASTER_SITE_WINDOWMAKER}
MASTER_SITE_SUBDIR= source/release
diff --git a/x11-wm/windowmaker/files/patch-WINGs::findfile.c b/x11-wm/windowmaker/files/patch-WINGs::findfile.c
new file mode 100644
index 0000000..a3215ab4
--- /dev/null
+++ b/x11-wm/windowmaker/files/patch-WINGs::findfile.c
@@ -0,0 +1,22 @@
+
+$FreeBSD$
+
+--- WINGs/findfile.c.orig Thu Oct 4 06:39:17 2001
++++ WINGs/findfile.c Thu Oct 25 11:14:56 2001
+@@ -1,5 +1,5 @@
+ /*
+- * Window Maker miscelaneous function library
++ * Window Maker miscellaneous function library
+ *
+ * Copyright (c) 1997 Alfredo K. Kojima
+ *
+@@ -226,7 +226,8 @@
+ }
+ wfree(fullpath);
+ }
+- tmp=&(tmp[len+1]);
++ tmp=&(tmp[len]);
++ if (*tmp==':') tmp++;
+ if (*tmp==0) break;
+ }
+ return NULL;
OpenPOWER on IntegriCloud