summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sbin/ldconfig/ldconfig.c2
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;
OpenPOWER on IntegriCloud