diff options
Diffstat (limited to 'src/lib/libc/string/strcpy.3')
-rw-r--r-- | src/lib/libc/string/strcpy.3 | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/lib/libc/string/strcpy.3 b/src/lib/libc/string/strcpy.3 index 504f42f2ba..2bc413c6ca 100644 --- a/src/lib/libc/string/strcpy.3 +++ b/src/lib/libc/string/strcpy.3 | |||
@@ -29,7 +29,7 @@ | |||
29 | .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | 29 | .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
30 | .\" SUCH DAMAGE. | 30 | .\" SUCH DAMAGE. |
31 | .\" | 31 | .\" |
32 | .\" $OpenBSD: strcpy.3,v 1.13 2005/02/25 03:12:44 cloder Exp $ | 32 | .\" $OpenBSD: strcpy.3,v 1.14 2005/08/06 03:21:36 jaredy Exp $ |
33 | .\" | 33 | .\" |
34 | .Dd June 29, 1991 | 34 | .Dd June 29, 1991 |
35 | .Dt STRCPY 3 | 35 | .Dt STRCPY 3 |
@@ -100,7 +100,8 @@ and does | |||
100 | .Em not | 100 | .Em not |
101 | NUL terminate | 101 | NUL terminate |
102 | .Va chararray | 102 | .Va chararray |
103 | because the source string is >= the length parameter. | 103 | because the length of the source string is greater than or equal to the |
104 | length parameter. | ||
104 | .Fn strncpy | 105 | .Fn strncpy |
105 | .Em only | 106 | .Em only |
106 | NUL terminates the destination string when the length of the source | 107 | NUL terminates the destination string when the length of the source |
@@ -118,7 +119,7 @@ Because | |||
118 | .Fn strncpy | 119 | .Fn strncpy |
119 | does | 120 | does |
120 | .Em not | 121 | .Em not |
121 | guarantee to NUL terminate the string itself, we must do this by hand. | 122 | guarantee to NUL terminate the string itself, it must be done by hand. |
122 | .Bd -literal -offset indent | 123 | .Bd -literal -offset indent |
123 | char buf[BUFSIZ]; | 124 | char buf[BUFSIZ]; |
124 | 125 | ||