From 5be73df67827879ea01e32f2efd5f115ccdf476d Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Fri, 11 Apr 2003 18:28:26 +0000 Subject: [PATCH] temporary fix to handle wav files in a pak file --- libs/util/riff.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libs/util/riff.c b/libs/util/riff.c index 95b1718b8..257ea15b9 100644 --- a/libs/util/riff.c +++ b/libs/util/riff.c @@ -308,7 +308,8 @@ riff_read (QFile *f) dstring_delete (riff_buf); return 0; } - while (Rread (f, &ck, sizeof (ck))) { + //FIXME the pos test should be in quakeio + while (Qtell (f) < file_len && Rread (f, &ck, sizeof (ck))) { ck.len = LittleLong (ck.len); //printf ("%.4s %d\n", ck.name, ck.len); if (ck.len < 0x80000000)