dtwm: Coverity 89124
authorPeter Howkins <flibble@users.sf.net>
Mon, 2 Jul 2018 19:43:50 +0000 (20:43 +0100)
committerPeter Howkins <flibble@users.sf.net>
Mon, 2 Jul 2018 19:43:50 +0000 (20:43 +0100)
cde/programs/dtwm/Session.c

index 54a85b7bad80f39438770affb741f1c1751952f7..3c51b0ad06b0c63341078c6cab334b0983668b5f 100644 (file)
@@ -180,7 +180,7 @@ SessionRestoreData (void)
                  max_subpanel_count += 10;
                  subpanel_data = (SubpanelData **)
                    XtRealloc ((char *) subpanel_data, 
-                              sizeof (SubpanelData **) * max_subpanel_count);
+                              sizeof (SubpanelData *) * max_subpanel_count);
               }
 
               subpanel_data[subpanel_count] = control_data->subpanel_data;