diff options
author | millert <> | 2001-06-18 22:29:59 +0000 |
---|---|---|
committer | millert <> | 2001-06-18 22:29:59 +0000 |
commit | afae624d63e4e717c5bae8c7842a4712309f728f (patch) | |
tree | 83b3d55ac723e64e5307448b86a506be5ba4caa4 | |
parent | afb658e9e046b4942d392a049e5c71d5df427231 (diff) | |
download | openbsd-afae624d63e4e717c5bae8c7842a4712309f728f.tar.gz openbsd-afae624d63e4e717c5bae8c7842a4712309f728f.tar.bz2 openbsd-afae624d63e4e717c5bae8c7842a4712309f728f.zip |
Clarify that if strlcat() does not find a NUL within siz byte it
will not NUL terminate either.
-rw-r--r-- | src/lib/libc/string/strlcpy.3 | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/lib/libc/string/strlcpy.3 b/src/lib/libc/string/strlcpy.3 index 3d50e0b0f6..8bb1b3a1e2 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.12 2001/05/07 15:51:54 millert Exp $ | 1 | .\" $OpenBSD: strlcpy.3,v 1.13 2001/06/18 22:29:59 millert 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. |
@@ -125,7 +125,9 @@ traverses | |||
125 | .Fa size | 125 | .Fa size |
126 | characters without finding a NUL, the length of the string is considered | 126 | characters without finding a NUL, the length of the string is considered |
127 | to be | 127 | to be |
128 | .Fa size . | 128 | .Fa size |
129 | and the destination string will not be NUL-terminated (since there was | ||
130 | no space for the NUL). | ||
129 | This keeps | 131 | This keeps |
130 | .Fn strlcat | 132 | .Fn strlcat |
131 | from running off the end of a string. | 133 | from running off the end of a string. |