Commit 8fd8ed2a authored by JINMEI Tatuya's avatar JINMEI Tatuya
Browse files

[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.
parent d5db8b95
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment