Commit 4fdac057 authored by Olivier Aubert's avatar Olivier Aubert

mediacontrol_util.c: better safe than sorry, specify the malloc unit.

parent 8323aea4
......@@ -212,7 +212,7 @@ mediacontrol_RGBPicture__alloc( int datasize )
return NULL;
pic->size = datasize;
pic->data = ( char* )malloc( datasize );
pic->data = ( char* )malloc( datasize * sizeof( char ) );
return pic;
}
......
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