dtwm: 88998
authorPeter Howkins <flibble@users.sf.net>
Mon, 2 Jul 2018 19:46:39 +0000 (20:46 +0100)
committerPeter Howkins <flibble@users.sf.net>
Mon, 2 Jul 2018 19:46:39 +0000 (20:46 +0100)
cde/programs/dtwm/UI.c

index a3a30632fcf2738c07a0d65947de651f3fa6609f..af6c7c40ee5e092dc88afe4bcfee485f96b1ea3a 100644 (file)
@@ -2075,7 +2075,7 @@ SwitchCreate (BoxData * box_data)
    panel.switch_row_count =
       (int) (intptr_t) (switch_data->element_values[SWITCH_NUMBER_OF_ROWS].parsed_value);
    switch_data->buttons = 
-      (Widget *) XtMalloc (sizeof (Widget *) * switch_count);
+      (Widget *) XtMalloc (sizeof (Widget) * switch_count);
 
    switch_data->popup_data = NULL;