aboutsummaryrefslogtreecommitdiff
path: root/src/crypto
diff options
context:
space:
mode:
authorThomas Winget <tewinget@gmail.com>2014-06-06 15:45:21 -0400
committerThomas Winget <tewinget@gmail.com>2014-06-12 19:05:51 -0400
commit72c3f36ca44a4be4d237095fd14e1ff862af5864 (patch)
treecd320e7996cf1478686679fc3e87fc4a9eee3a1d /src/crypto
parentbuilds, but doesn't link. other than that, electrum-style recovery implement... (diff)
downloadmonero-72c3f36ca44a4be4d237095fd14e1ff862af5864.tar.xz
fixed some pointer- and loop-based derps
Diffstat (limited to 'src/crypto')
-rw-r--r--src/crypto/electrum-words.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/crypto/electrum-words.cpp b/src/crypto/electrum-words.cpp
index 048aa403f..5489d5034 100644
--- a/src/crypto/electrum-words.cpp
+++ b/src/crypto/electrum-words.cpp
@@ -84,7 +84,7 @@ namespace crypto
uint32_t val;
- memcpy(&val, &src.data, 4);
+ memcpy(&val, (src.data) + (i * 4), 4);
w1 = val % n;
w2 = ((val / n) + w1) % n;