diff options
author | lloyd <[email protected]> | 2015-01-23 17:47:31 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2015-01-23 17:47:31 +0000 |
commit | 848314e16daed06e6e519dbf8c40edf9c85a51bf (patch) | |
tree | a7d246972486ae5f49090689090af7d351110ec6 /src/lib/entropy/egd | |
parent | b6cc9a4084caf6d9d4b955fadc321f6521f2b36e (diff) |
Centralize where string.h/cstring is included to mem_ops.h
See github 42 for background
Diffstat (limited to 'src/lib/entropy/egd')
-rw-r--r-- | src/lib/entropy/egd/es_egd.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/entropy/egd/es_egd.cpp b/src/lib/entropy/egd/es_egd.cpp index 2ddb233bd..36ad70e3a 100644 --- a/src/lib/entropy/egd/es_egd.cpp +++ b/src/lib/entropy/egd/es_egd.cpp @@ -8,7 +8,7 @@ #include <botan/internal/es_egd.h> #include <botan/parsing.h> #include <botan/exceptn.h> -#include <cstring> +#include <botan/mem_ops.h> #include <stdexcept> #include <sys/types.h> @@ -40,7 +40,7 @@ int EGD_EntropySource::EGD_Socket::open_socket(const std::string& path) if(fd >= 0) { sockaddr_un addr; - std::memset(&addr, 0, sizeof(addr)); + clear_mem(&addr, 1); addr.sun_family = PF_LOCAL; if(path.length() >= sizeof(addr.sun_path)) |