summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--usr.sbin/bhyve/acpi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/bhyve/acpi.c b/usr.sbin/bhyve/acpi.c
index a9dd1cc..57fe783 100644
--- a/usr.sbin/bhyve/acpi.c
+++ b/usr.sbin/bhyve/acpi.c
@@ -790,10 +790,10 @@ basl_open(struct basl_fio *bf, int suffix)
err = 0;
if (suffix) {
- strncpy(bf->f_name, basl_stemplate, MAXPATHLEN);
+ strlcpy(bf->f_name, basl_stemplate, MAXPATHLEN);
bf->fd = mkstemps(bf->f_name, strlen(BHYVE_ASL_SUFFIX));
} else {
- strncpy(bf->f_name, basl_template, MAXPATHLEN);
+ strlcpy(bf->f_name, basl_template, MAXPATHLEN);
bf->fd = mkstemp(bf->f_name);
}
OpenPOWER on IntegriCloud