HistoHeapInit: correct positions allocation size

Change-Id: I1879fd48bee3aea6f0504926d7030b504dd9be07
This commit is contained in:
James Zern 2014-09-26 11:21:19 -07:00
parent 45d9635fd3
commit 35ad48b848

View File

@ -586,7 +586,7 @@ static int HistoHeapInit(HistoHeap* const histo_heap, const int max_index) {
histo_heap->heap = WebPSafeMalloc(max_index * max_index,
sizeof(*histo_heap->heap));
histo_heap->positions = WebPSafeMalloc(max_index * max_index,
sizeof(*histo_heap->heap));
sizeof(*histo_heap->positions));
return histo_heap->heap != NULL && histo_heap->positions != NULL;
}