diff options
author | sobomax <sobomax@FreeBSD.org> | 2001-10-25 16:17:10 +0800 |
---|---|---|
committer | sobomax <sobomax@FreeBSD.org> | 2001-10-25 16:17:10 +0800 |
commit | 709a4db92c486d93bed92ff18a7547a8db0f8de9 (patch) | |
tree | 83a58e3a2b6a5d68d0f1f541e38c8a3795a8ffb8 /x11-wm/windowmaker | |
parent | ff2faf0c62786bc45106d6ce71cd30caec2e70a5 (diff) | |
download | freebsd-ports-gnome-709a4db92c486d93bed92ff18a7547a8db0f8de9.tar.gz freebsd-ports-gnome-709a4db92c486d93bed92ff18a7547a8db0f8de9.tar.zst freebsd-ports-gnome-709a4db92c486d93bed92ff18a7547a8db0f8de9.zip |
Fix a potential segfault.
Submitted by: tg
Diffstat (limited to 'x11-wm/windowmaker')
-rw-r--r-- | x11-wm/windowmaker/Makefile | 1 | ||||
-rw-r--r-- | x11-wm/windowmaker/files/patch-WINGs::findfile.c | 22 |
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; |