diff options
author | cperciva <cperciva@FreeBSD.org> | 2004-03-13 00:11:05 +0000 |
---|---|---|
committer | cperciva <cperciva@FreeBSD.org> | 2004-03-13 00:11:05 +0000 |
commit | e1627f9ca5d332967ba163ed85ab46dc9ab2fe8e (patch) | |
tree | 535cd10f1b5c63ebf4b80809fd97bf3e8ae4d719 /sbin/ldconfig | |
parent | f2b9d84260efde88b7a4b4af9694236c69d78c0e (diff) | |
download | FreeBSD-src-e1627f9ca5d332967ba163ed85ab46dc9ab2fe8e.zip FreeBSD-src-e1627f9ca5d332967ba163ed85ab46dc9ab2fe8e.tar.gz |
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
Diffstat (limited to 'sbin/ldconfig')
-rw-r--r-- | sbin/ldconfig/ldconfig.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |