Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
c11 safe string handling support
[vpp.git]
/
src
/
vppinfra
/
test_elf.c
diff --git
a/src/vppinfra/test_elf.c
b/src/vppinfra/test_elf.c
index
84fe077
..
3bed954
100644
(file)
--- a/
src/vppinfra/test_elf.c
+++ b/
src/vppinfra/test_elf.c
@@
-72,7
+72,7
@@
elf_set_interpreter (elf_main_t * em, char *interp)
return error;
/* Put in new null terminated string. */
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;
clib_memcpy (s->contents, interp, strlen (interp));
return 0;
@@
-146,7
+146,7
@@
main (int argc, char *argv[])
unformat_input_t i;
clib_error_t *error = 0;
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)
unformat_init_command_line (&i, argv);
while (unformat_check_input (&i) != UNFORMAT_END_OF_INPUT)