Commit 1eb32010 authored by Shawn Webb's avatar Shawn Webb
Browse files

Squashed 'contrib/hardenedbsd/liblattzfs/' changes from e36d93e6dbb7..23efcb5c1a1f

23efcb5c1a1f Use memset_s rather than memset

git-subtree-dir: contrib/hardenedbsd/liblattzfs
git-subtree-split: 23efcb5c1a1f129b247fbd29860f74b6cad84c1b
parent 01038002
......@@ -22,6 +22,8 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#define __STDC_WANT_LIB_EXT1__ 1
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
......@@ -100,7 +102,7 @@ lattzfs_ctx_free(lattzfs_ctx_t **ctx)
}
free(ctxp->lc_pool_name);
memset(ctxp, 0, sizeof(*ctxp));
memset_s(ctxp, sizeof(*ctxp), 0, sizeof(*ctxp));
free(ctxp);
*ctx = NULL;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment