diff options
author | fenner <fenner@FreeBSD.org> | 1999-02-11 06:07:58 +0800 |
---|---|---|
committer | fenner <fenner@FreeBSD.org> | 1999-02-11 06:07:58 +0800 |
commit | 932d8ed59d5e1e74556e74e8dd89a142328be41a (patch) | |
tree | 19d8116d6b76772d38b2210a75a320375365248b /devel | |
parent | 0bbb989acbfac9878092a7ed52aad2446594b04f (diff) | |
download | freebsd-ports-gnome-932d8ed59d5e1e74556e74e8dd89a142328be41a.tar.gz freebsd-ports-gnome-932d8ed59d5e1e74556e74e8dd89a142328be41a.tar.zst freebsd-ports-gnome-932d8ed59d5e1e74556e74e8dd89a142328be41a.zip |
Terminate buffer read from file in PLGetProplistWithPath().
This fixes the core dumps that many windowmaker apps (at least
wmsetbg and WPrefs) were seeing.
Diffstat (limited to 'devel')
-rw-r--r-- | devel/libPropList/files/patch-ab | 10 |
1 files changed, 10 insertions, 0 deletions
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) |