aboutsummaryrefslogtreecommitdiff
path: root/sbin/mksnap_ffs/mksnap_ffs.c
diff options
context:
space:
mode:
Diffstat (limited to 'sbin/mksnap_ffs/mksnap_ffs.c')
-rw-r--r--sbin/mksnap_ffs/mksnap_ffs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/mksnap_ffs/mksnap_ffs.c b/sbin/mksnap_ffs/mksnap_ffs.c
index 0d8e32a15ab3..58939cc69029 100644
--- a/sbin/mksnap_ffs/mksnap_ffs.c
+++ b/sbin/mksnap_ffs/mksnap_ffs.c
@@ -150,7 +150,7 @@ main(int argc, char **argv)
errx(1, "%s: Not a mount point", stfsbuf.f_mntonname);
}
if (cp != stfsbuf.f_mntonname)
- strlcpy(stfsbuf.f_mntonname, cp, sizeof(stfsbuf.f_mntonname));
+ memmove(stfsbuf.f_mntonname, cp, strlen(cp) + 1);
/*
* Having verified access to the directory in which the