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

index 3c51b0ad06b0c63341078c6cab334b0983668b5f..33d167b88d52b77ef282c2201b3c5af843e04f01 100644 (file)
@@ -521,7 +521,7 @@ WmFrontPanelSessionSaveData (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;