Commit 9260d0d9 authored by Jack Moffitt's avatar Jack Moffitt

fix bug on request of vakor

svn path=/trunk/vorbis-tools/; revision=1922
parent 3fdcb11b
......@@ -370,7 +370,7 @@ int wav_open(FILE *in, oe_enc_opt *opt, unsigned char *oldbuf, int buflen)
" The program that created this wav file is broken.\n"
" Don't use it, or report a bug.\n");
if(fread(buf,1,16,in) < len)
if(fread(buf,1,16,in) < 16)
{
fprintf(stderr, "Warning: Unexpected EOF in reading WAV header\n");
return 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment