BIND 10 master, updated. 8fd8ed2aed8f309b655661389cf6ae043a854fe5 [master] added missing header file and namespace for memcpy().

BIND 10 source code commits bind10-changes at lists.isc.org
Wed Aug 29 18:02:30 UTC 2012


The branch, master has been updated
       via  8fd8ed2aed8f309b655661389cf6ae043a854fe5 (commit)
      from  d5db8b95c963cb2d493b24dda0380f71a4df67f2 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 8fd8ed2aed8f309b655661389cf6ae043a854fe5
Author: JINMEI Tatuya <jinmei at isc.org>
Date:   Wed Aug 29 18:01:24 2012 +0000

    [master] added missing header file and namespace for memcpy().
    
    some stricter compilers require this.
    this fixes a build failure: http://git.bind10.isc.org/~tester/builder/BIND10/20120829105133-Solaris10-sparc-Sunstudio/logs/build.out
    okayed on jabber.

-----------------------------------------------------------------------

Summary of changes:
 src/lib/datasrc/memory/zone_data.cc |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

-----------------------------------------------------------------------
diff --git a/src/lib/datasrc/memory/zone_data.cc b/src/lib/datasrc/memory/zone_data.cc
index 033af15..e2cbdef 100644
--- a/src/lib/datasrc/memory/zone_data.cc
+++ b/src/lib/datasrc/memory/zone_data.cc
@@ -27,6 +27,7 @@
 #include <boost/function.hpp>
 
 #include <cassert>
+#include <cstring>
 #include <new>                  // for the placement new
 #include <vector>
 
@@ -94,7 +95,7 @@ NSEC3Data::create(util::MemorySegment& mem_sgmt, uint8_t hashalg,
     uint8_t* dp = param_data->getSaltBuf();
     *dp++ = salt_len;
     if (salt_len > 0) {
-        memcpy(dp, &salt.at(0), salt_len); // use at for safety
+        std::memcpy(dp, &salt.at(0), salt_len); // use at for safety
     }
 
     return (param_data);



More information about the bind10-changes mailing list