aboutsummaryrefslogtreecommitdiffstats
path: root/src/tools/elftool
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/elftool')
-rw-r--r--src/tools/elftool/elftool.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tools/elftool/elftool.c b/src/tools/elftool/elftool.c
index d9d3704b4a3..debd9089027 100644
--- a/src/tools/elftool/elftool.c
+++ b/src/tools/elftool/elftool.c
@@ -100,7 +100,7 @@ static clib_error_t * elf_set_interpreter (elf_main_t * em,
return error;
/* Put in new null terminated string. */
- memset (s->contents, 0, vec_len (s->contents));
+ clib_memset (s->contents, 0, vec_len (s->contents));
clib_memcpy (s->contents, interp, strlen (interp));
return 0;
@@ -375,7 +375,7 @@ int main (int argc, char * argv[])
unformat_input_t i;
clib_error_t * error = 0;
- memset (tm, 0, sizeof (tm[0]));
+ clib_memset (tm, 0, sizeof (tm[0]));
unformat_init_command_line (&i, argv);
while (unformat_check_input (&i) != UNFORMAT_END_OF_INPUT)