diff options
author | Nathan Scott <nathans@redhat.com> | 2021-08-31 15:43:59 +1000 |
---|---|---|
committer | BenBE <BenBE@geshi.org> | 2021-08-31 08:08:01 +0200 |
commit | 1f2f567ca1881ae7f01a99cb11b6810cbf897dae (patch) | |
tree | 1cdfab5aa9e93e4de3b57dff643022eb65bf8bea | |
parent | 393330239ebebb66592ded221b47897347c2abee (diff) |
Fix meterPanels size calculation for dynamic array allocation
-rw-r--r-- | CategoriesPanel.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/CategoriesPanel.c b/CategoriesPanel.c index 7212aece..21010b3c 100644 --- a/CategoriesPanel.c +++ b/CategoriesPanel.c @@ -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]; |