mirror of https://github.com/odrling/Aegisub
Oops, had swapped size and value parameters in a memset call.
Originally committed to SVN as r2901.
This commit is contained in:
parent
c9affe9aeb
commit
36dbd86dd6
|
@ -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");
|
||||
|
|
Loading…
Reference in New Issue