Fix a potential segfault.
Submitted by: tg
This commit is contained in:
parent
5eba15b331
commit
1d49faf456
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=49185
@ -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
|
||||
|
22
x11-wm/windowmaker/files/patch-WINGs::findfile.c
Normal file
22
x11-wm/windowmaker/files/patch-WINGs::findfile.c
Normal file
@ -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;
|
Loading…
Reference in New Issue
Block a user