Function parameter array declarations are not treated the same way
as local or global array declarations. sizeof will return only the size
of the pointer instead of the size of the array.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5584
b64f7644-9d1e-0410-96f1-
a4d463321fa5
**********************************************************************/
static void PgcWalkInit( uint32_t pgcn_map[MAX_PGCN/32] )
{
- memset(pgcn_map, 0, sizeof(pgcn_map) );
+ memset(pgcn_map, 0, sizeof(uint32_t) * MAX_PGCN/32);
}
/***********************************************************************