Reviewed fread() usage around the code

This commit is contained in:
raysan5
2017-02-11 23:17:56 +01:00
parent b4988777ef
commit afcd748fdf
4 changed files with 20 additions and 15 deletions

View File

@ -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;