diff --git a/libethereum/Precompiled.cpp b/libethereum/Precompiled.cpp index 780a8210f..f3c73ec75 100644 --- a/libethereum/Precompiled.cpp +++ b/libethereum/Precompiled.cpp @@ -81,7 +81,8 @@ void ripemd160Code(bytesConstRef _in, bytesRef _out) void identityCode(bytesConstRef _in, bytesRef _out) { - _in.copyTo(_out); + bytes b = _in.toBytes(); + memcpy(_out.data(), b.data(), min(_out.size(), b.size())); } }