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

index 0fe94013c1da4f2571b9884d19c8767ed2df9504..c6e9737c3f7881a786b4b89c48b3e679d507e0ea 100644 (file)
@@ -1300,7 +1300,7 @@ AllocateRecordData (RecordData ** record_data,
       *record_data_count += 10;
       *record_data = (RecordData *) 
                        XtRealloc ((char *) *record_data, 
-                                  sizeof (RecordData *) * (*record_data_count));
+                                  sizeof (RecordData) * (*record_data_count));
    }
 
    (*record_data)[*record_count].element_values =