diff options
Diffstat (limited to 'usr.sbin/xntpd/lib/a_md512crypt.c')
-rw-r--r-- | usr.sbin/xntpd/lib/a_md512crypt.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/usr.sbin/xntpd/lib/a_md512crypt.c b/usr.sbin/xntpd/lib/a_md512crypt.c index a3714a24085e6..6033dedcff441 100644 --- a/usr.sbin/xntpd/lib/a_md512crypt.c +++ b/usr.sbin/xntpd/lib/a_md512crypt.c @@ -80,7 +80,8 @@ MD5auth2crypt(keyno, pkt, length) MD5Update(&ctx, (char *)(pkt) + length - 8, 8); MD5Final(&ctx); - bcopy((char *)ctx.digest, (char *) &pkt[NOCRYPT_LONGS + length/sizeof(U_LONG)], - BLOCK_OCTETS); - return 4 + BLOCK_OCTETS; + memmove((char *) &pkt[NOCRYPT_LONGS + length/sizeof(U_LONG)], + (char *) ctx.digest, + BLOCK_OCTETS); + return (4 + BLOCK_OCTETS); } |