diff options
author | Dave Barach <dave@barachs.net> | 2018-10-17 10:38:51 -0400 |
---|---|---|
committer | Damjan Marion <dmarion@me.com> | 2018-10-23 13:06:46 +0000 |
commit | b7b929931a07fbb27b43d5cd105f366c3e29807e (patch) | |
tree | 438681c89738802dbb5d339715b96ea2c31bafb4 /src/svm/svmtool.c | |
parent | b9a4c445c1d4e9cdab476a8e1fb8a46ff0fc6080 (diff) |
c11 safe string handling support
Change-Id: Ied34720ca5a6e6e717eea4e86003e854031b6eab
Signed-off-by: Dave Barach <dave@barachs.net>
Diffstat (limited to 'src/svm/svmtool.c')
-rw-r--r-- | src/svm/svmtool.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/svm/svmtool.c b/src/svm/svmtool.c index 63577d97fd9..6d1a2b1da49 100644 --- a/src/svm/svmtool.c +++ b/src/svm/svmtool.c @@ -190,7 +190,7 @@ svm_map_region_nolock (svm_map_region_args_t * a) { clib_warning ("rp->mutex LOCKED by pid %d, tag %d, cleared...", rp->mutex_owner_pid, rp->mutex_owner_tag); - memset (&rp->mutex, 0, sizeof (rp->mutex)); + clib_memset (&rp->mutex, 0, sizeof (rp->mutex)); } else @@ -339,7 +339,7 @@ subregion_repair (char *chroot_path) for (i = 0; i < vec_len (svm_names); i++) { - memset (&a, 0, sizeof (a)); + clib_memset (&a, 0, sizeof (a)); a.root_path = chroot_path; a.name = (char *) svm_names[i]; fformat (stdout, "Checking %s region...\n", a.name); @@ -422,7 +422,7 @@ repair (char *chroot_path, int crash_root_region) { clib_warning ("root_rp->mutex LOCKED by pid %d, tag %d, cleared...", root_rp->mutex_owner_pid, root_rp->mutex_owner_tag); - memset (&root_rp->mutex, 0, sizeof (root_rp->mutex)); + clib_memset (&root_rp->mutex, 0, sizeof (root_rp->mutex)); goto out; } else |