summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormillert <>1999-03-06 23:36:27 +0000
committermillert <>1999-03-06 23:36:27 +0000
commit6fb16762fb409583f9e1850a83bc1f69bb2ce276 (patch)
tree4f7d554c9176dae4e1596ee38399631d94e3dcd0 /src
parenta8ea8e7a9fae127a700f870e44831b1d5326b137 (diff)
downloadopenbsd-6fb16762fb409583f9e1850a83bc1f69bb2ce276.tar.gz
openbsd-6fb16762fb409583f9e1850a83bc1f69bb2ce276.tar.bz2
openbsd-6fb16762fb409583f9e1850a83bc1f69bb2ce276.zip
typo
Diffstat (limited to 'src')
-rw-r--r--src/lib/libc/string/strcpy.36
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.
127char buf[BUFSIZ]; 127char buf[BUFSIZ];
128 128
129(void)strncpy(buf, input, sizeof(buf) - 1); 129(void)strncpy(buf, input, sizeof(buf) - 1);
130buf[sizeof(buf) - 1] = '\\0'; 130buf[sizeof(buf) - 1] = '\e0';
131.Ed 131.Ed
132.Pp 132.Pp
133Note that 133Note 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
137is simply: 137is 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 ,