From 848314e16daed06e6e519dbf8c40edf9c85a51bf Mon Sep 17 00:00:00 2001 From: lloyd Date: Fri, 23 Jan 2015 17:47:31 +0000 Subject: Centralize where string.h/cstring is included to mem_ops.h See github 42 for background --- src/lib/entropy/egd/es_egd.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/lib/entropy/egd') 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 #include #include -#include +#include #include #include @@ -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)) -- cgit v1.2.3