fix some fmemopen behaviors
authorRich Felker <dalias@aerifal.cx>
Mon, 5 Sep 2011 01:40:42 +0000 (21:40 -0400)
committerRich Felker <dalias@aerifal.cx>
Mon, 5 Sep 2011 01:40:42 +0000 (21:40 -0400)
commite72ee5786b1f328da131b87388333c2e3a09b7b3
treeb50b10ec6edb5fad79386c1cdb6b249a91ba69a3
parenta7778dae226fbae335383bc92b6cdfccc5ea9f2e
fix some fmemopen behaviors

read should not be allowed past "current size".
append mode should write at "current size", not buffer size.
null termination should not be written except when "current size" grows.
src/stdio/fmemopen.c