common/filestuff.c (make_cleanup_close): Update comment.
[deliverable/binutils-gdb.git] / gdb / exec.c
index 8ddb3df01d67737ae996c6b688e42cfabc4ea2c6..3089bb4f42a8bcdf5dd695d522e8f2e42a2a4796 100644 (file)
@@ -453,8 +453,8 @@ resize_section_table (struct target_section_table *table, int adjustment)
 
   if (new_count)
     {
-      table->sections = xrealloc (table->sections,
-                                 sizeof (struct target_section) * new_count);
+      table->sections = XRESIZEVEC (struct target_section, table->sections,
+                                   new_count);
       table->sections_end = table->sections + new_count;
     }
   else
This page took 0.023576 seconds and 4 git commands to generate.