mirror of
https://github.com/raysan5/raylib.git
synced 2025-12-25 10:22:33 -05:00
Reviewed fread() usage around the code
This commit is contained in:
@ -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;
|
||||
|
||||
Reference in New Issue
Block a user