diff options
| author | millert <> | 1999-03-06 23:36:27 +0000 |
|---|---|---|
| committer | millert <> | 1999-03-06 23:36:27 +0000 |
| commit | 6fb16762fb409583f9e1850a83bc1f69bb2ce276 (patch) | |
| tree | 4f7d554c9176dae4e1596ee38399631d94e3dcd0 /src/lib/libc | |
| parent | a8ea8e7a9fae127a700f870e44831b1d5326b137 (diff) | |
| download | openbsd-6fb16762fb409583f9e1850a83bc1f69bb2ce276.tar.gz openbsd-6fb16762fb409583f9e1850a83bc1f69bb2ce276.tar.bz2 openbsd-6fb16762fb409583f9e1850a83bc1f69bb2ce276.zip | |
typo
Diffstat (limited to 'src/lib/libc')
| -rw-r--r-- | src/lib/libc/string/strcpy.3 | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/libc/string/strcpy.3 b/src/lib/libc/string/strcpy.3 index 0e4804200f..626a06af7b 100644 --- a/src/lib/libc/string/strcpy.3 +++ b/src/lib/libc/string/strcpy.3 | |||
| @@ -33,7 +33,7 @@ | |||
| 33 | .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | 33 | .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
| 34 | .\" SUCH DAMAGE. | 34 | .\" SUCH DAMAGE. |
| 35 | .\" | 35 | .\" |
| 36 | .\" $OpenBSD: strcpy.3,v 1.4 1999/03/05 23:16:05 millert Exp $ | 36 | .\" $OpenBSD: strcpy.3,v 1.5 1999/03/06 23:36:27 millert Exp $ |
| 37 | .\" | 37 | .\" |
| 38 | .Dd June 29, 1991 | 38 | .Dd June 29, 1991 |
| 39 | .Dt STRCPY 3 | 39 | .Dt STRCPY 3 |
| @@ -127,7 +127,7 @@ guarantee to NUL-terminate the string itself, we must do this by hand. | |||
| 127 | char buf[BUFSIZ]; | 127 | char buf[BUFSIZ]; |
| 128 | 128 | ||
| 129 | (void)strncpy(buf, input, sizeof(buf) - 1); | 129 | (void)strncpy(buf, input, sizeof(buf) - 1); |
| 130 | buf[sizeof(buf) - 1] = '\\0'; | 130 | buf[sizeof(buf) - 1] = '\e0'; |
| 131 | .Ed | 131 | .Ed |
| 132 | .Pp | 132 | .Pp |
| 133 | Note that | 133 | Note that |
| @@ -136,7 +136,7 @@ is a better choice for this kind of operation. The equivalent using | |||
| 136 | .Xr strlcpy 3 | 136 | .Xr strlcpy 3 |
| 137 | is simply: | 137 | is simply: |
| 138 | .Bd -literal -offset indent | 138 | .Bd -literal -offset indent |
| 139 | (void)strncpy(buf, input, sizeof(buf)); | 139 | (void)strlcpy(buf, input, sizeof(buf)); |
| 140 | .Ed | 140 | .Ed |
| 141 | .Sh SEE ALSO | 141 | .Sh SEE ALSO |
| 142 | .Xr bcopy 3 , | 142 | .Xr bcopy 3 , |
