summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAaron Campbell <aaron@cvs.openbsd.org>2000-11-06 01:03:26 +0000
committerAaron Campbell <aaron@cvs.openbsd.org>2000-11-06 01:03:26 +0000
commitd31f4979b9b20a93ddef804da7f51ac86df65ba3 (patch)
treec2521bdd9d6880fc918f4ff4535753047930ff05 /lib
parenteda0b254b87bddcf3509c53e6429fdcc66a99968 (diff)
The constant's name is MAXPATHLEN, not MAXPATHNAMELEN; closes PR/1491.
From ianm@kashmir.cit.nepean.uws.edu.au.
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/string/strlcpy.36
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libc/string/strlcpy.3 b/lib/libc/string/strlcpy.3
index ee7864db082..13db956d227 100644
--- a/lib/libc/string/strlcpy.3
+++ b/lib/libc/string/strlcpy.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: strlcpy.3,v 1.9 2000/10/18 05:12:07 aaron Exp $
+.\" $OpenBSD: strlcpy.3,v 1.10 2000/11/06 01:03:25 aaron Exp $
.\"
.\" Copyright (c) 1998, 2000 Todd C. Miller <Todd.Miller@courtesan.com>
.\" All rights reserved.
@@ -132,7 +132,7 @@ char *s, *p, buf[BUFSIZ];
To detect truncation, perhaps while building a pathname, something
like the following might be used:
.Bd -literal -offset indent
-char *dir, *file, pname[MAXPATHNAMELEN];
+char *dir, *file, pname[MAXPATHLEN];
\&...
@@ -145,7 +145,7 @@ if (strlcat(pname, file, sizeof(pname)) >= sizeof(pname))
Since we know how many characters we copied the first time, we can
speed things up a bit by using a copy instead on an append:
.Bd -literal -offset indent
-char *dir, *file, pname[MAXPATHNAMELEN];
+char *dir, *file, pname[MAXPATHLEN];
size_t n;
\&...