From 9b759b8d35f570a098f2e97271c5c14bb94ff9d1 Mon Sep 17 00:00:00 2001 From: jakcron Date: Mon, 20 Aug 2018 19:23:55 +0800 Subject: [PATCH] [fnd::ecdsa] Fix bug in copy operator. --- lib/libfnd/include/fnd/ecdsa.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/libfnd/include/fnd/ecdsa.h b/lib/libfnd/include/fnd/ecdsa.h index 04cfcff..af38511 100644 --- a/lib/libfnd/include/fnd/ecdsa.h +++ b/lib/libfnd/include/fnd/ecdsa.h @@ -43,7 +43,7 @@ namespace fnd void operator=(const sEcdsa240PrivateKey& other) { - memcpy(this->k, k, kEcdsa240Size); + memcpy(this->k, other.k, kEcdsa240Size); } bool operator==(const sEcdsa240PrivateKey& other) const