Terminate buffer read from file in PLGetProplistWithPath().
This fixes the core dumps that many windowmaker apps (at least wmsetbg and WPrefs) were seeing.
This commit is contained in:
parent
7a041d04a3
commit
8e8b196ed3
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=16596
10
devel/libPropList/files/patch-ab
Normal file
10
devel/libPropList/files/patch-ab
Normal file
@ -0,0 +1,10 @@
|
||||
--- filehandling.c.orig Mon Jan 25 15:30:54 1999
|
||||
+++ filehandling.c Wed Feb 10 14:02:41 1999
|
||||
@@ -106,6 +106,7 @@
|
||||
return NULL;
|
||||
}
|
||||
|
||||
+ *(str + fstat_buf.st_size) = '\0';
|
||||
flk.l_type = F_UNLCK;
|
||||
#if 0
|
||||
if((flock(fd, LOCK_UN))<0)
|
Loading…
Reference in New Issue
Block a user