From bf5f90a4b8e6e0cada5b7a83946c5641e486049e Mon Sep 17 00:00:00 2001 From: jakcron Date: Tue, 14 Aug 2018 15:24:10 +0800 Subject: [PATCH] [fnd::ecdsa] Fix bug in sEcdsa240Point::operator=(). --- lib/libfnd/include/fnd/ecdsa.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/libfnd/include/fnd/ecdsa.h b/lib/libfnd/include/fnd/ecdsa.h index e06880e..04cfcff 100644 --- a/lib/libfnd/include/fnd/ecdsa.h +++ b/lib/libfnd/include/fnd/ecdsa.h @@ -21,8 +21,8 @@ namespace fnd void operator=(const sEcdsa240Point& other) { - memcpy(this->r, r, kEcdsa240Size); - memcpy(this->s, s, kEcdsa240Size); + memcpy(this->r, other.r, kEcdsa240Size); + memcpy(this->s, other.s, kEcdsa240Size); } bool operator==(const sEcdsa240Point& other) const