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

index 71c31764853fa07347c36949a99ebce65d7f6b1d..54a85b7bad80f39438770affb741f1c1751952f7 100644 (file)
@@ -655,7 +655,7 @@ SessionAddFileData (char  * file_name,
        panel.max_dynamic_data_count += 10;
        panel.dynamic_data_list = (DynamicComponent **)
           XtRealloc ((char *) panel.dynamic_data_list,
-             sizeof (DynamicComponent **) * panel.max_dynamic_data_count);
+             sizeof (DynamicComponent *) * panel.max_dynamic_data_count);
    }
 
    panel.dynamic_data_list[count] =