From 03bee4432ecc19cc50c16bac5e249033961d0886 Mon Sep 17 00:00:00 2001 From: Gav Wood Date: Thu, 11 Jun 2015 12:26:22 +0900 Subject: [PATCH] Fix for precompiled contracts. --- libethereum/Precompiled.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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())); } }