From 8e8b196ed37aeb2583b07890565f2e80032a73f5 Mon Sep 17 00:00:00 2001 From: Bill Fenner Date: Wed, 10 Feb 1999 22:07:58 +0000 Subject: [PATCH] Terminate buffer read from file in PLGetProplistWithPath(). This fixes the core dumps that many windowmaker apps (at least wmsetbg and WPrefs) were seeing. --- devel/libPropList/files/patch-ab | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 devel/libPropList/files/patch-ab diff --git a/devel/libPropList/files/patch-ab b/devel/libPropList/files/patch-ab new file mode 100644 index 000000000000..63e54369fb68 --- /dev/null +++ b/devel/libPropList/files/patch-ab @@ -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)