]> err.no Git - moreutils/commit
sponge: Correct bad use of fread that caused a trailing quantity of soaked data to...
authorJoey Hess <joey@kitenet.net>
Thu, 2 Sep 2010 20:39:51 +0000 (16:39 -0400)
committerJoey Hess <joey@kitenet.net>
Thu, 2 Sep 2010 20:39:51 +0000 (16:39 -0400)
commita456619d189cef2933aefef86606ae4b29516c85
tree239c275c2b469944848bc87f3f7dfffe25afbd31
parent28242c4d201f281e0e72e674f13728aca8f422c7
sponge: Correct bad use of fread that caused a trailing quantity of soaked data to be silently discarded when a temp file was used and sponge output to stdout. Closes: #595220

This bug was sorta introduced by 6f31909ff74c064ea0b5126219b3e8f7b8826bee.

Actually, the buggy fread was there before also, and would have happened
on quantities of data not evenly divisible by 8.
debian/changelog
sponge.c