From 8e38e328af9247f7bc6e61af9f0bf0ba6de2a190 Mon Sep 17 00:00:00 2001 From: Thom Johansen Date: Fri, 16 Nov 2007 16:06:48 +0000 Subject: That should be fread, not read. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15642 a1c6a512-1295-4272-9138-f99709370657 --- tools/rbspeex/rbspeexenc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/rbspeex/rbspeexenc.c b/tools/rbspeex/rbspeexenc.c index 5d301998da..f0e0262b6c 100644 --- a/tools/rbspeex/rbspeexenc.c +++ b/tools/rbspeex/rbspeexenc.c @@ -72,7 +72,7 @@ bool get_wave_metadata(FILE *fd, int *numchan, int *bps, int *sr, int *numsample /* dwSampleLength */ if (i >= 4) { /* get rest of chunk */ - if ((read_bytes = read(buf, 1, 4, fd)) < 4) + if ((read_bytes = fread(buf, 1, 4, fd)) < 4) return false; i -= 4; -- cgit