diff options
author | Rozhuk Ivan <rozhuk.im@gmail.com> | 2014-12-13 11:59:42 +0000 |
---|---|---|
committer | Rozhuk Ivan <rozhuk.im@gmail.com> | 2014-12-13 11:59:42 +0000 |
commit | e3c1a6d3c8ca609923a87635d208472db2e384e6 (patch) | |
tree | 14cd1a354929e175f43fbd200fdd283a28e481e6 /plugins/MirOTR/libotr-3.2.0/src/context.c | |
parent | b0dd8ba58e708865ef6e3ed6e596699fc64f4c2d (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/context.c')
-rw-r--r-- | plugins/MirOTR/libotr-3.2.0/src/context.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/MirOTR/libotr-3.2.0/src/context.c b/plugins/MirOTR/libotr-3.2.0/src/context.c index 8807b89145..d0d912f76a 100644 --- a/plugins/MirOTR/libotr-3.2.0/src/context.c +++ b/plugins/MirOTR/libotr-3.2.0/src/context.c @@ -157,7 +157,7 @@ Fingerprint *otrl_context_find_fingerprint(ConnContext *context, assert(f != NULL); f->fingerprint = malloc(20); assert(f->fingerprint != NULL); - memmove(f->fingerprint, fingerprint, 20); + memcpy(f->fingerprint, fingerprint, 20); f->context = context; f->trust = NULL; f->next = context->fingerprint_root.next; @@ -193,7 +193,7 @@ void otrl_context_set_preshared_secret(ConnContext *context, if (secret_len) { context->preshared_secret = malloc(secret_len); if (context->preshared_secret) { - memmove(context->preshared_secret, secret, secret_len); + memcpy(context->preshared_secret, secret, secret_len); context->preshared_secret_len = secret_len; } } |