1
0
mirror of https://github.com/openbsd/src.git synced 2026-04-29 16:47:15 +00:00

When copying, use the size of the buffer not size of a pointer.

In this case the buffer was a uintptr_t, so no functional change.

ok miod@ tb@ bluhm@
This commit is contained in:
jsg
2025-09-19 11:27:51 +00:00
parent 7ff36aae07
commit aa8d507d49

View File

@@ -1,4 +1,4 @@
/* $OpenBSD: route.c,v 1.112 2025/07/10 05:28:13 dlg Exp $ */
/* $OpenBSD: route.c,v 1.113 2025/09/19 11:27:51 jsg Exp $ */
/* $NetBSD: route.c,v 1.15 1996/05/07 02:55:06 thorpej Exp $ */
/*
@@ -207,7 +207,7 @@ static struct art_node *
getdefault(art_heap_entry *heap)
{
art_heap_entry entry;
kread((u_long)(heap + ART_HEAP_IDX_DEFAULT), &entry, sizeof(&entry));
kread((u_long)(heap + ART_HEAP_IDX_DEFAULT), &entry, sizeof(entry));
return (art_heap_entry_to_node(entry));
}