summaryrefslogtreecommitdiff
path: root/plugins/MirOTR/libotr-3.2.0/src/dh.c
diff options
context:
space:
mode:
authorRozhuk Ivan <rozhuk.im@gmail.com>2014-12-13 11:59:42 +0000
committerRozhuk Ivan <rozhuk.im@gmail.com>2014-12-13 11:59:42 +0000
commite3c1a6d3c8ca609923a87635d208472db2e384e6 (patch)
tree14cd1a354929e175f43fbd200fdd283a28e481e6 /plugins/MirOTR/libotr-3.2.0/src/dh.c
parentb0dd8ba58e708865ef6e3ed6e596699fc64f4c2d (diff)
memmove -> memcpy in some cases, review req
git-svn-id: http://svn.miranda-ng.org/main/trunk@11367 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/MirOTR/libotr-3.2.0/src/dh.c')
-rw-r--r--plugins/MirOTR/libotr-3.2.0/src/dh.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/MirOTR/libotr-3.2.0/src/dh.c b/plugins/MirOTR/libotr-3.2.0/src/dh.c
index 610c84e143..e23788dd08 100644
--- a/plugins/MirOTR/libotr-3.2.0/src/dh.c
+++ b/plugins/MirOTR/libotr-3.2.0/src/dh.c
@@ -273,7 +273,7 @@ gcry_error_t otrl_dh_compute_v2_auth_keys(const DH_keypair *our_dh,
}
sdata[0] = 0x00;
gcry_md_hash_buffer(GCRY_MD_SHA256, hashdata, sdata, slen+5);
- memmove(sessionid, hashdata, 8);
+ memcpy(sessionid, hashdata, 8);
*sessionidlenp = 8;
/* Calculate the encryption keys */
@@ -398,7 +398,7 @@ gcry_error_t otrl_dh_compute_v1_session_id(const DH_keypair *our_dh,
}
sdata[0] = 0x00;
gcry_md_hash_buffer(GCRY_MD_SHA1, hashdata, sdata, slen+5);
- memmove(sessionid, hashdata, 20);
+ memcpy(sessionid, hashdata, 20);
*sessionidlenp = 20;
/* Which half should be bold? */