[vlc-devel] commit: Fix wrong size given to memset (found by coccinelle static analyzer ). ( Rémi Duraffort )
git version control
git at videolan.org
Mon Feb 8 22:25:47 CET 2010
vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Mon Feb 8 22:10:00 2010 +0100| [97cbb4793fa7352ab92fc1fa85b5afebc7cb1ea5] | committer: Rémi Duraffort
Fix wrong size given to memset (found by coccinelle static analyzer).
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=97cbb4793fa7352ab92fc1fa85b5afebc7cb1ea5
---
modules/audio_output/file.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/modules/audio_output/file.c b/modules/audio_output/file.c
index d2641ec..3bee0eb 100644
--- a/modules/audio_output/file.c
+++ b/modules/audio_output/file.c
@@ -221,7 +221,7 @@ static int Open( vlc_object_t * p_this )
/* Write wave header */
WAVEHEADER *wh = &p_aout->output.p_sys->waveh;
- memset( wh, 0, sizeof(wh) );
+ memset( wh, 0, sizeof(*wh) );
switch( p_aout->output.output.i_format )
{
More information about the vlc-devel
mailing list