git: 0abd71f39a5c - main - hastd: Clean up the ebuf code

From: Dag-Erling Smørgrav <des_at_FreeBSD.org>
Date: Thu, 03 Sep 2026 13:36:17 UTC
The branch main has been updated by des:

URL: https://cgit.FreeBSD.org/src/commit/?id=0abd71f39a5c296bf5bf41a0d98cfe849967d8f9

commit 0abd71f39a5c296bf5bf41a0d98cfe849967d8f9
Author:     Dag-Erling Smørgrav <des@FreeBSD.org>
AuthorDate: 2026-09-03 13:34:16 +0000
Commit:     Dag-Erling Smørgrav <des@FreeBSD.org>
CommitDate: 2026-09-03 13:35:48 +0000

    hastd: Clean up the ebuf code
    
    Missed an instance of bcopy().
    
    Fixes:          48c0fc0171a1 ("hastd: Clean up the ebuf code")
---
 sbin/hastd/ebuf.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sbin/hastd/ebuf.c b/sbin/hastd/ebuf.c
index 8a1de8a180c6..31920aa10859 100644
--- a/sbin/hastd/ebuf.c
+++ b/sbin/hastd/ebuf.c
@@ -248,7 +248,7 @@ ebuf_head_extend(struct ebuf *eb, size_t size)
 	newstart =
 	    newbuf + (page_size / 4) + size + (eb->eb_start - eb->eb_buf);
 
-	bcopy(eb->eb_start, newstart, eb->eb_size);
+	memcpy(newstart, eb->eb_start, eb->eb_size);
 
 	eb->eb_buf = newbuf;
 	eb->eb_start = newstart;