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

index e95e963fd93328289374dee1fba01c900611a7fb..d2a85020e227b668ba00b7f2a4641d5fe551683b 100644 (file)
@@ -1950,7 +1950,7 @@ GetNameList (RecordData * record_data,
             name_list_count += 10;
            name_list = 
               (char **) XtRealloc ((char *) name_list, 
-                                   sizeof (char **) * (name_list_count + 1));
+                                   sizeof (char *) * (name_list_count + 1));
         }       
          name_list [found_count] = 
            record_data[i].element_values[name_type].parsed_value;