aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/edquota
diff options
context:
space:
mode:
authorDon Lewis <truckman@FreeBSD.org>2016-05-13 00:02:03 +0000
committerDon Lewis <truckman@FreeBSD.org>2016-05-13 00:02:03 +0000
commit3b7e0c53d5885584c31b76949de3c078830ec2ee (patch)
treef8a96ab9ba6a5e113f61c6e7921d5bdd7940fe26 /usr.sbin/edquota
parent52af39633af3054c14622f64d27f772ae75aef3f (diff)
Notes
Diffstat (limited to 'usr.sbin/edquota')
-rw-r--r--usr.sbin/edquota/edquota.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/edquota/edquota.c b/usr.sbin/edquota/edquota.c
index 0cd117f19969..6a6c194f6ab9 100644
--- a/usr.sbin/edquota/edquota.c
+++ b/usr.sbin/edquota/edquota.c
@@ -390,7 +390,7 @@ getprivs(long id, int quotatype, char *fspath)
if ((qup = (struct quotause *)calloc(1, sizeof(*qup))) == NULL)
errx(2, "out of memory");
qup->qf = qf;
- strncpy(qup->fsname, fs->fs_file, sizeof(qup->fsname));
+ strlcpy(qup->fsname, fs->fs_file, sizeof(qup->fsname));
if (quota_read(qf, &qup->dqblk, id) == -1) {
warn("cannot read quotas on %s", fs->fs_file);
freeprivs(qup);