From 24aa9785ae89b94c12bbd421c3bef5491aaa9454 Mon Sep 17 00:00:00 2001 From: Niels Martin Hansen Date: Mon, 4 May 2009 19:15:57 +0000 Subject: [PATCH] Oops, had swapped size and value parameters in a memset call. Originally committed to SVN as r2901. --- aegisub/src/audio_provider_pcm.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aegisub/src/audio_provider_pcm.cpp b/aegisub/src/audio_provider_pcm.cpp index 214c66976..d4161f41b 100644 --- a/aegisub/src/audio_provider_pcm.cpp +++ b/aegisub/src/audio_provider_pcm.cpp @@ -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");