Commit 8323aea4 authored by Olivier Aubert's avatar Olivier Aubert

src/control/mediacontrol_init.c: fix a malloc() error (spotted by Christophe Massiot)

parent b4392aff
...@@ -18,7 +18,7 @@ mediacontrol_Instance* mediacontrol_new( char** args, mediacontrol_Exception *ex ...@@ -18,7 +18,7 @@ mediacontrol_Instance* mediacontrol_new( char** args, mediacontrol_Exception *ex
i_count++; i_count++;
} }
ppsz_argv = malloc( i_count + 2 ); ppsz_argv = malloc( ( i_count + 2 ) * sizeof( char * ) ) ;
if( ! ppsz_argv ) if( ! ppsz_argv )
{ {
exception->code = mediacontrol_InternalException; exception->code = mediacontrol_InternalException;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment