summaryrefslogtreecommitdiffstats
path: root/CategoriesPanel.c
diff options
context:
space:
mode:
authorNathan Scott <nathans@redhat.com>2021-08-31 15:43:59 +1000
committerBenBE <BenBE@geshi.org>2021-08-31 08:08:01 +0200
commit1f2f567ca1881ae7f01a99cb11b6810cbf897dae (patch)
tree1cdfab5aa9e93e4de3b57dff643022eb65bf8bea /CategoriesPanel.c
parent393330239ebebb66592ded221b47897347c2abee (diff)
Fix meterPanels size calculation for dynamic array allocation
Diffstat (limited to 'CategoriesPanel.c')
-rw-r--r--CategoriesPanel.c2
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];

© 2014-2024 Faster IT GmbH | imprint | privacy policy