From 012b489a7c882796cd8e5eabe82e2ea51ccceeca Mon Sep 17 00:00:00 2001 From: Kenneth R Westerback Date: Fri, 18 Oct 2013 15:19:41 +0000 Subject: Scattering a few bcopy()'s around source using mostly memcpy() is just asking for confusion. Replace bcopy()'s with memcpy()'s. --- usr.sbin/dhcpd/sync.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usr.sbin/dhcpd/sync.c') diff --git a/usr.sbin/dhcpd/sync.c b/usr.sbin/dhcpd/sync.c index f8dde4e0ddb..27346b82854 100644 --- a/usr.sbin/dhcpd/sync.c +++ b/usr.sbin/dhcpd/sync.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sync.c,v 1.14 2013/10/18 13:44:35 krw Exp $ */ +/* $OpenBSD: sync.c,v 1.15 2013/10/18 15:19:40 krw Exp $ */ /* * Copyright (c) 2008 Bob Beck @@ -275,7 +275,7 @@ sync_recv(void) len = ntohs(hdr->sh_length); /* Compute and validate HMAC */ - bcopy(hdr->sh_hmac, hmac[0], DHCP_SYNC_HMAC_LEN); + memcpy(hmac[0], hdr->sh_hmac, DHCP_SYNC_HMAC_LEN); bzero(hdr->sh_hmac, DHCP_SYNC_HMAC_LEN); HMAC(EVP_sha1(), sync_key, strlen(sync_key), buf, len, hmac[1], &hmac_len); -- cgit v1.2.3