It's a HIDReportItem * array not a HIDReportItem ** one. Fixes CID 8078.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39911 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -109,7 +109,7 @@ HIDReport::AddMainItem(global_item_state &globalState,
|
||||
if (fItemsUsed >= fItemsAllocated) {
|
||||
fItemsAllocated += 10;
|
||||
HIDReportItem **newItems = (HIDReportItem **)realloc(fItems,
|
||||
sizeof(HIDReportItem **) * fItemsAllocated);
|
||||
sizeof(HIDReportItem *) * fItemsAllocated);
|
||||
if (newItems == NULL) {
|
||||
TRACE_ALWAYS("no memory when growing report item list\n");
|
||||
fItemsAllocated -= 10;
|
||||
|
||||
Reference in New Issue
Block a user