diff options
Diffstat (limited to 'module/icp/os')
-rw-r--r-- | module/icp/os/modconf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/module/icp/os/modconf.c b/module/icp/os/modconf.c index e0cd7f4ad..32b46b5ff 100644 --- a/module/icp/os/modconf.c +++ b/module/icp/os/modconf.c @@ -146,7 +146,7 @@ mod_info(struct modlinkage *modlp, struct modinfo *modinfop) if (*linkpp == NULL) { msip->msi_linkinfo[0] = '\0'; } else { - (void) strncpy(msip->msi_linkinfo, + (void) strlcpy(msip->msi_linkinfo, (*linkpp)->misc_linkinfo, MODMAXLINKINFOLEN); retval = MODL_INFO(*linkpp, modlp, &msip->msi_p0); if (retval != 0) |