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:
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_len); // use at for safety
std::memcpy(dp, &, salt_len); // use at for safety
return (param_data);
Supports Markdown
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