summaryrefslogtreecommitdiff
path: root/x11-wm
diff options
context:
space:
mode:
authorMaxim Sobolev <sobomax@FreeBSD.org>2001-10-25 08:17:10 +0000
committerMaxim Sobolev <sobomax@FreeBSD.org>2001-10-25 08:17:10 +0000
commit1d49faf456fb2013a77f28a0e2ec524ebe1ca5ce (patch)
tree3cfc560ce163d5b893ca5cdc75aca47ffc71e3ac /x11-wm
parentUpdate to 1.1a. (diff)
Fix a potential segfault.
Submitted by: tg
Notes
Notes: svn path=/head/; revision=49185
Diffstat (limited to 'x11-wm')
-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 d4cc683665f5..1776cba7ce38 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 000000000000..a3215ab44678
--- /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;