Commit 7418f751 authored by Olivier Aubert's avatar Olivier Aubert

vlcglue.c: same bug, specify malloc unit.

parent 4fdac057
......@@ -755,7 +755,7 @@ MediaControl_new( PyTypeObject *type, PyObject *args, PyObject *kwds )
return NULL;
}
i_size = PySequence_Size( py_list );
ppsz_args = malloc( i_size + 1 );
ppsz_args = malloc( ( i_size + 1 ) * sizeof( char * ) );
if( ! ppsz_args )
{
PyErr_SetString( PyExc_MemoryError, "Out of memory" );
......
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