diff options
author | lloyd <[email protected]> | 2015-03-06 03:29:25 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2015-03-06 03:29:25 +0000 |
commit | 6fcdb56ee42078172d44529d55a57bf377f5ae53 (patch) | |
tree | ee13f65621927ffaaa9b64c91dc7b96b7911a9f5 /src | |
parent | 13fa2ab64efd2beee0c18caca7ddf0f301e2f492 (diff) |
Fix macro checks for zero_mem. Github 55
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/utils/zero_mem.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/utils/zero_mem.cpp b/src/lib/utils/zero_mem.cpp index baa4aba6c..371c434ca 100644 --- a/src/lib/utils/zero_mem.cpp +++ b/src/lib/utils/zero_mem.cpp @@ -17,9 +17,9 @@ void zero_mem(void* ptr, size_t n) { #if defined(BOTAN_TARGET_OS_HAS_RTLSECUREZEROMEMORY) ::RtlSecureZeroMemory(ptr, n); -#elif defined(BOTAN_USE_VOLATILE_MEMSET) && (BOTAN_USE_VOLATILE_MEMSET == 1) +#elif defined(BOTAN_USE_VOLATILE_MEMSET_FOR_ZERO) && (BOTAN_USE_VOLATILE_MEMSET_FOR_ZERO == 1) static void* (*const volatile memset_ptr)(void*, int, size_t) = std::memset; - (memset_ptr)(p, 0, n); + (memset_ptr)(ptr, 0, n); #else volatile byte* p = reinterpret_cast<volatile byte*>(ptr); |