Reviewed fread() usage around the code
This commit is contained in:
parent
b4988777ef
commit
afcd748fdf
4 changed files with 20 additions and 15 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue