1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-10-19 02:29:40 +00:00

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
This commit is contained in:
Colin Percival 2004-03-13 00:11:05 +00:00
parent 08b82c6b74
commit 7d85b9aa14
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=126896

View File

@ -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;