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
97427e7b46
commit
24aa9785ae
|
@ -100,7 +100,7 @@ PCMAudioProvider::PCMAudioProvider(const wxString &filename)
|
||||||
}
|
}
|
||||||
|
|
||||||
struct stat filestats;
|
struct stat filestats;
|
||||||
memset(&filestats, sizeof(filestats), 0);
|
memset(&filestats, 0, sizeof(filestats));
|
||||||
if (fstat(file_handle, &filestats)) {
|
if (fstat(file_handle, &filestats)) {
|
||||||
close(file_handle);
|
close(file_handle);
|
||||||
throw _T("PCM audio provider: Could not stat file to get size");
|
throw _T("PCM audio provider: Could not stat file to get size");
|
||||||
|
|
Loading…
Reference in New Issue