- fix typo (Cristian Ionescu-Idbohrn)
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Wed, 9 Jul 2008 17:56:53 +0000 (17:56 -0000)
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Wed, 9 Jul 2008 17:56:53 +0000 (17:56 -0000)
modutils/insmod.c

index df6bf10a0c36860bf7327631c7cc0b4fe54b68a1..3b55451181a84e3c3a3602b0328843ffdc2e9964 100644 (file)
@@ -3082,7 +3082,7 @@ static void obj_allocate_commons(struct obj_file *f)
                if (i == f->header.e_shnum) {
                        struct obj_section *sec;
 
-                       f->sections = xrealloc(f->sections, 2, i);
+                       f->sections = xrealloc_vector(f->sections, 2, i);
                        f->sections[i] = sec = arch_new_section();
                        f->header.e_shnum = i + 1;