summaryrefslogtreecommitdiff
path: root/x11-wm/windowmaker/files/patch-WINGs::findfile.c
diff options
context:
space:
mode:
Diffstat (limited to 'x11-wm/windowmaker/files/patch-WINGs::findfile.c')
-rw-r--r--x11-wm/windowmaker/files/patch-WINGs::findfile.c22
1 files changed, 22 insertions, 0 deletions
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;