summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjstebbins <[email protected]>2013-06-15 20:52:27 +0000
committerjstebbins <[email protected]>2013-06-15 20:52:27 +0000
commit6681bf2bb95f5f185426e73d96dcb0056e7a71e0 (patch)
treea277dd25f250691e5657d793c3a03d0811cde819
parentca4a3f1f76d2a2c502fe891e171a3147b4b76255 (diff)
libhb: fix incorrect sizeof()
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
-rw-r--r--libhb/dvdnav.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libhb/dvdnav.c b/libhb/dvdnav.c
index 9217f7dba..0d741b05e 100644
--- a/libhb/dvdnav.c
+++ b/libhb/dvdnav.c
@@ -1979,7 +1979,7 @@ static int NextPgcn( ifo_handle_t *ifo, int pgcn, uint32_t pgcn_map[MAX_PGCN/32]
**********************************************************************/
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);
}
/***********************************************************************