]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Replace the only memcpy usage with memmove
authorOndřej Surý <ondrej@sury.org>
Fri, 12 Jul 2019 13:28:00 +0000 (15:28 +0200)
committerOndřej Surý <ondrej@sury.org>
Fri, 12 Jul 2019 13:28:00 +0000 (15:28 +0200)
lib/isc/random.c

index 152f0cc16a81aa047356a090226ef34fa8fd650c..79fbc7c7aa16606fc728f0f24336ef5124b0dcfe 100644 (file)
@@ -87,7 +87,7 @@ isc_random_initialize(void) {
 #else
        isc_entropy_get(useed, sizeof(useed));
 #endif
-       memcpy(seed, useed, sizeof(seed));
+       memmove(seed, useed, sizeof(seed));
 }
 
 uint8_t