Commit ed3b5034 authored by Shawn Webb's avatar Shawn Webb
Browse files

Merge commit '1eb32010' into hardened/current/liblattzfs

parents 452abc8b 1eb32010
......@@ -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