diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-04-03 13:30:29 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-04-03 13:30:29 +0100 |
commit | 7641f747f2afc07bb5846ac32adf62250f6e7e28 (patch) | |
tree | ed28f6dd76bb513a3ed6c2ca9e7913cb139a2c29 /src/libutil/shingles.c | |
parent | 3a8236c9344d6c757760a785510315d851bcbe62 (diff) | |
download | rspamd-7641f747f2afc07bb5846ac32adf62250f6e7e28.tar.gz rspamd-7641f747f2afc07bb5846ac32adf62250f6e7e28.zip |
[Minor] Use memcpy
Diffstat (limited to 'src/libutil/shingles.c')
-rw-r--r-- | src/libutil/shingles.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/libutil/shingles.c b/src/libutil/shingles.c index 236e8113a..2dd7faffc 100644 --- a/src/libutil/shingles.c +++ b/src/libutil/shingles.c @@ -68,10 +68,7 @@ rspamd_shingles_from_text (GArray *input, rspamd_cryptobox_hash_update (&bs, cur_key, 16); rspamd_cryptobox_hash_final (&bs, shabuf); - for (j = 0; j < 16; j ++) { - out_key[j] = shabuf[j]; - } - + memcpy (out_key, shabuf, 16); rspamd_cryptobox_hash_init (&bs, NULL, 0); cur_key = out_key; out_key += 16; |