1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-15 23:50:44 +00:00
freebsd-ports/devel/libPropList/files/patch-ab
Bill Fenner 8e8b196ed3 Terminate buffer read from file in PLGetProplistWithPath().
This fixes the core dumps that many windowmaker apps (at least
 wmsetbg and WPrefs) were seeing.
1999-02-10 22:07:58 +00:00

11 lines
242 B
Plaintext

--- 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)