diff options
author | aaron <> | 2000-11-06 01:03:25 +0000 |
---|---|---|
committer | aaron <> | 2000-11-06 01:03:25 +0000 |
commit | 7501fc4f02ed5e88b8a94cdeabd6b2e181ab32df (patch) | |
tree | 29ab585c5cf9590d2c4b2fb947b56cabe1a5dcea | |
parent | 463e714935b9651a5eb2c08fcf3f8844fc6b653d (diff) | |
download | openbsd-7501fc4f02ed5e88b8a94cdeabd6b2e181ab32df.tar.gz openbsd-7501fc4f02ed5e88b8a94cdeabd6b2e181ab32df.tar.bz2 openbsd-7501fc4f02ed5e88b8a94cdeabd6b2e181ab32df.zip |
The constant's name is MAXPATHLEN, not MAXPATHNAMELEN; closes PR/1491.
From ianm@kashmir.cit.nepean.uws.edu.au.
-rw-r--r-- | src/lib/libc/string/strlcpy.3 | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/libc/string/strlcpy.3 b/src/lib/libc/string/strlcpy.3 index ee7864db08..13db956d22 100644 --- a/src/lib/libc/string/strlcpy.3 +++ b/src/lib/libc/string/strlcpy.3 | |||
@@ -1,4 +1,4 @@ | |||
1 | .\" $OpenBSD: strlcpy.3,v 1.9 2000/10/18 05:12:07 aaron Exp $ | 1 | .\" $OpenBSD: strlcpy.3,v 1.10 2000/11/06 01:03:25 aaron Exp $ |
2 | .\" | 2 | .\" |
3 | .\" Copyright (c) 1998, 2000 Todd C. Miller <Todd.Miller@courtesan.com> | 3 | .\" Copyright (c) 1998, 2000 Todd C. Miller <Todd.Miller@courtesan.com> |
4 | .\" All rights reserved. | 4 | .\" All rights reserved. |
@@ -132,7 +132,7 @@ char *s, *p, buf[BUFSIZ]; | |||
132 | To detect truncation, perhaps while building a pathname, something | 132 | To detect truncation, perhaps while building a pathname, something |
133 | like the following might be used: | 133 | like the following might be used: |
134 | .Bd -literal -offset indent | 134 | .Bd -literal -offset indent |
135 | char *dir, *file, pname[MAXPATHNAMELEN]; | 135 | char *dir, *file, pname[MAXPATHLEN]; |
136 | 136 | ||
137 | \&... | 137 | \&... |
138 | 138 | ||
@@ -145,7 +145,7 @@ if (strlcat(pname, file, sizeof(pname)) >= sizeof(pname)) | |||
145 | Since we know how many characters we copied the first time, we can | 145 | Since we know how many characters we copied the first time, we can |
146 | speed things up a bit by using a copy instead on an append: | 146 | speed things up a bit by using a copy instead on an append: |
147 | .Bd -literal -offset indent | 147 | .Bd -literal -offset indent |
148 | char *dir, *file, pname[MAXPATHNAMELEN]; | 148 | char *dir, *file, pname[MAXPATHLEN]; |
149 | size_t n; | 149 | size_t n; |
150 | 150 | ||
151 | \&... | 151 | \&... |