shithub: sox

Download patch

ref: 719cb10be146193e7e0b563da480e6a0c0de0418
parent: d020c097f327091bd71faa55221c63dde933b66b
author: cbagwell <cbagwell>
date: Thu Jan 6 14:17:50 EST 2000

Fixed small fread bug introduced to sndrtool.c file.

--- a/src/sndrtool.c
+++ b/src/sndrtool.c
@@ -65,7 +65,7 @@
          and second word is between 4000 & 25000 then this is sounder sound */
         /* otherwise, its probably raw, not handled here */
 
-	if (fread(buf, 1, 2, buf) != 2)
+	if (fread(buf, 1, 2, ft->fp) != 2)
 	{
 		fail("SND: unexpected EOF");
 		return(ST_EOF);