mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-03 14:48:57 +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:
parent
08b82c6b74
commit
7d85b9aa14
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=126896
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user