diff --git a/libisofs/hfsplus_classes.c b/libisofs/hfsplus_classes.c index f00822d..d47aade 100644 --- a/libisofs/hfsplus_classes.c +++ b/libisofs/hfsplus_classes.c @@ -438,7 +438,7 @@ void make_hfsplus_class_pages() uint16_t *rpt, *page_pt; int page_count = 0; - memset(class_pages, 0, 19 * 256); + memset(class_pages, 0, 19 * 256 * sizeof(uint16_t)); for (i = 0; i < 256; i++) hfsplus_class_pages[i] = NULL;