[vlc-devel] commit: Fix access_filter_record allocation size (fixes #2229) ( Rémi Denis-Courmont )

git version control git at videolan.org
Mon Oct 20 17:50:00 CEST 2008


vlc | branch: 0.9-bugfix | Rémi Denis-Courmont <rdenis at simphalempin.com> | Mon Oct 20 18:49:04 2008 +0300| [f1163b8a17d4932d1431125b4a97e83c3bdd9498] | committer: Rémi Denis-Courmont 

Fix access_filter_record allocation size (fixes #2229)

(does not apply to trunk)

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=f1163b8a17d4932d1431125b4a97e83c3bdd9498
---

 modules/access_filter/record.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/modules/access_filter/record.c b/modules/access_filter/record.c
index 67dba9d..0903191 100644
--- a/modules/access_filter/record.c
+++ b/modules/access_filter/record.c
@@ -133,7 +133,7 @@ static int Open( vlc_object_t *p_this )
 
     p_access->info = p_src->info;
 
-    p_access->p_sys = p_sys = malloc( sizeof( access_t ) );
+    p_access->p_sys = p_sys = malloc( sizeof( *p_sys ) );
     if( !p_sys ) return VLC_ENOMEM;
 
     /* */




More information about the vlc-devel mailing list