From e1627f9ca5d332967ba163ed85ab46dc9ab2fe8e Mon Sep 17 00:00:00 2001 From: cperciva Date: Sat, 13 Mar 2004 00:11:05 +0000 Subject: Fix 10 year old size-of-bcopy bug. PR: bin/43930 Submitted by: Alan Barrett Approved by: rwatson (mentor) MFNetBSD: revision 1.35 MFC after: 3 days --- sbin/ldconfig/ldconfig.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sbin/ldconfig/ldconfig.c b/sbin/ldconfig/ldconfig.c index 284ec0b..23516a8 100644 --- a/sbin/ldconfig/ldconfig.c +++ b/sbin/ldconfig/ldconfig.c @@ -357,7 +357,7 @@ int dewey[], ndewey; shp = (struct shlib_list *)xmalloc(sizeof *shp); shp->name = strdup(name); shp->path = concat(dir, "/", file); - bcopy(dewey, shp->dewey, MAXDEWEY); + bcopy(dewey, shp->dewey, sizeof(shp->dewey)); shp->ndewey = ndewey; shp->next = NULL; -- cgit v1.1