Oops, had swapped size and value parameters in a memset call.

Originally committed to SVN as r2901.
This commit is contained in:
Niels Martin Hansen 2009-05-04 19:15:57 +00:00
parent 97427e7b46
commit 24aa9785ae

View file

@ -100,7 +100,7 @@ PCMAudioProvider::PCMAudioProvider(const wxString &filename)
}
struct stat filestats;
memset(&filestats, sizeof(filestats), 0);
memset(&filestats, 0, sizeof(filestats));
if (fstat(file_handle, &filestats)) {
close(file_handle);
throw _T("PCM audio provider: Could not stat file to get size");