diff options
author | imp <imp@FreeBSD.org> | 2001-05-16 19:10:40 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 2001-05-16 19:10:40 +0000 |
commit | d3f66389ff16a4744bbf881cad06556b1b9830fe (patch) | |
tree | b04dfa3212484d6d0559a8715c17cf27319f27bb /bin/cp/extern.h | |
parent | e2fa665e9f1748f3f8e15f524f6d7fb542e66b37 (diff) | |
download | FreeBSD-src-d3f66389ff16a4744bbf881cad06556b1b9830fe.zip FreeBSD-src-d3f66389ff16a4744bbf881cad06556b1b9830fe.tar.gz |
Migrate from using MAXPATHLEN to MAX_PATH. Use strlcpy to copy the
strings.
Diffstat (limited to 'bin/cp/extern.h')
-rw-r--r-- | bin/cp/extern.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/cp/extern.h b/bin/cp/extern.h index 272d632..3b0ecef 100644 --- a/bin/cp/extern.h +++ b/bin/cp/extern.h @@ -37,7 +37,7 @@ typedef struct { char *p_end; /* pointer to NULL at end of path */ char *target_end; /* pointer to end of target base */ - char p_path[MAXPATHLEN + 1]; /* pointer to the start of a path */ + char p_path[PATH_MAX]; /* pointer to the start of a path */ } PATH_T; extern PATH_T to; |