summaryrefslogtreecommitdiffstats
path: root/sbin/quotacheck
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2003-08-07 05:38:56 +0000
committerimp <imp@FreeBSD.org>2003-08-07 05:38:56 +0000
commit17d8c01273b9916c500bde5e187d27fd08b08a37 (patch)
treee2e00ff1c92172fb115c562f1ee5753d4faea8bb /sbin/quotacheck
parent206704526c630d3dd94d4fcf5ad34437725e6cf5 (diff)
downloadFreeBSD-src-17d8c01273b9916c500bde5e187d27fd08b08a37.zip
FreeBSD-src-17d8c01273b9916c500bde5e187d27fd08b08a37.tar.gz
Prefer PATH_MAX to MAXPATHLEN. Both contain the trailing NUL, so
remove the unneeded +1.
Diffstat (limited to 'sbin/quotacheck')
-rw-r--r--sbin/quotacheck/quotacheck.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/quotacheck/quotacheck.c b/sbin/quotacheck/quotacheck.c
index e32f84f..a5cce23 100644
--- a/sbin/quotacheck/quotacheck.c
+++ b/sbin/quotacheck/quotacheck.c
@@ -97,8 +97,8 @@ union dinode {
struct quotaname {
long flags;
- char grpqfname[MAXPATHLEN + 1];
- char usrqfname[MAXPATHLEN + 1];
+ char grpqfname[PATH_MAX];
+ char usrqfname[PATH_MAX];
};
#define HASUSR 1
#define HASGRP 2
OpenPOWER on IntegriCloud