Skip to content

Commit

Permalink
Fix meterPanels size calculation for dynamic array allocation
Browse files Browse the repository at this point in the history
  • Loading branch information
natoscott authored and BenBE committed Aug 31, 2021
1 parent 3933302 commit 1f2f567
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CategoriesPanel.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ static void CategoriesPanel_delete(Object* object) {

static void CategoriesPanel_makeMetersPage(CategoriesPanel* this) {
size_t columns = HeaderLayout_getColumns(this->scr->header->headerLayout);
MetersPanel** meterPanels = xMallocArray(columns, sizeof(MetersPanel));
MetersPanel** meterPanels = xMallocArray(columns, sizeof(MetersPanel*));

for (size_t i = 0; i < columns; i++) {
char titleBuffer[32];
Expand Down

0 comments on commit 1f2f567

Please sign in to comment.