summaryrefslogtreecommitdiffhomepage
path: root/src/audio.c
diff options
context:
space:
mode:
authorraysan5 <[email protected]>2017-02-11 23:17:56 +0100
committerraysan5 <[email protected]>2017-02-11 23:17:56 +0100
commitafcd748fdf2d4f379f7a3be1706c1d6cd2ff504d (patch)
treeab46e50df4cfb094bd951cdc6504f87513d1d244 /src/audio.c
parentb4988777ef60b312632602d7591ab508f0c90ab2 (diff)
downloadraylib-afcd748fdf2d4f379f7a3be1706c1d6cd2ff504d.tar.gz
raylib-afcd748fdf2d4f379f7a3be1706c1d6cd2ff504d.zip
Reviewed fread() usage around the code
Diffstat (limited to 'src/audio.c')
-rw-r--r--src/audio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/audio.c b/src/audio.c
index 720233e0..eb5e65d6 100644
--- a/src/audio.c
+++ b/src/audio.c
@@ -1114,7 +1114,7 @@ static Wave LoadWAV(const char *fileName)
wave.data = malloc(wavData.subChunkSize);
// Read in the sound data into the soundData variable
- fread(wave.data, 1, wavData.subChunkSize, wavFile);
+ fread(wave.data, wavData.subChunkSize, 1, wavFile);
// Store wave parameters
wave.sampleRate = wavFormat.sampleRate;