Project

General

Profile

Bug #2698 » 0001-core-fix-memset_s-call-fixes-2698.patch

stbuehler, 2015-12-05 14:21

View differences:

src/safe_memclear.c
41 41

  
42 42
void safe_memclear(void *s, size_t n) {
43 43
#if defined(HAVE_MEMSET_S)
44
	memset_s(s, 0, n);
44
	memset_s(s, n, 0, n);
45 45
#elif defined(HAVE_EXPLICIT_BZERO)
46 46
	explicit_bzero(s, n);
47 47
#else
(2-2/2)