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 c9affe9aeb
commit 36dbd86dd6
1 changed files with 1 additions and 1 deletions

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");