summaryrefslogtreecommitdiffstats
path: root/src/vppinfra/elf.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/vppinfra/elf.h')
-rw-r--r--src/vppinfra/elf.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vppinfra/elf.h b/src/vppinfra/elf.h
index 8d9893120f5..56869f1b9c7 100644
--- a/src/vppinfra/elf.h
+++ b/src/vppinfra/elf.h
@@ -966,10 +966,10 @@ elf_get_section_contents (elf_main_t * em,
result = 0;
if (vec_len (s->contents) > 0)
{
+ vec_attr_t va = { .elt_sz = elt_size };
/* Make vector copy of contents with given element size. */
result =
- _vec_realloc (result, vec_len (s->contents) / elt_size, elt_size,
- /* header_bytes */ 0, /* align */ 0, 0);
+ _vec_realloc_internal (result, vec_len (s->contents) / elt_size, &va);
clib_memcpy (result, s->contents, vec_len (s->contents));
}