ref: 106014e37d0702acbffc4a8d6492823c5473ccf2
parent: 99df22f4d8ac252140cad65adf2ce76e03d6a043
author: robs <robs>
date: Wed Dec 26 12:09:11 EST 2007
revert recent change that was causing tests.sh to fail
--- a/src/misc.c
+++ b/src/misc.c
@@ -115,8 +115,7 @@
*/
size_t sox_readbuf(sox_format_t * ft, void *buf, sox_size_t len)
{
- size_t ret = fread(buf, 1, len, ft->fp);
- return (ferror(ft->fp) || feof(ft->fp)) ? 0 : ret;
+ return fread(buf, 1, len, ft->fp);
}
/* Skip input without seeking. */