Commit 067c0c38 authored by Evan Hunt's avatar Evan Hunt
Browse files

[master] s/mempcy/memmove/

parent 8f0cf84b
......@@ -9411,7 +9411,7 @@ generate_salt(unsigned char *salt, size_t saltlen) {
for (i = 0; i < n; i++)
isc_random_get(&rnd.rnd32[i]);
memcpy(salt, rnd.rnd, saltlen);
memmove(salt, rnd.rnd, saltlen);
r.base = rnd.rnd;
r.length = (unsigned int) saltlen;
......
......@@ -311,8 +311,8 @@ chacha_getuint16(isc_rng_t *rng) {
if (rng->have < sizeof(val))
chacha_rekey(rng, NULL, 0);
memcpy(&val, rng->buffer + CHACHA_BUFFERSIZE - rng->have,
sizeof(val));
memmove(&val, rng->buffer + CHACHA_BUFFERSIZE - rng->have,
sizeof(val));
/* Clear the copied region. */
memset(rng->buffer + CHACHA_BUFFERSIZE - rng->have,
0, sizeof(val));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment