summaryrefslogtreecommitdiff
path: root/lib/libc/string
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>1999-03-06 23:36:28 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>1999-03-06 23:36:28 +0000
commit756589b846358e1ac9f15d6bcdbf80653b9cb36d (patch)
tree561f74be0e7eb384cb5ae700452a2afd8be81623 /lib/libc/string
parent8794e569f8df80f191a5595e10f0a69c83745f16 (diff)
typo
Diffstat (limited to 'lib/libc/string')
-rw-r--r--lib/libc/string/strcpy.36
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libc/string/strcpy.3 b/lib/libc/string/strcpy.3
index 0e4804200fa..626a06af7b0 100644
--- a/lib/libc/string/strcpy.3
+++ b/lib/libc/string/strcpy.3
@@ -33,7 +33,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" $OpenBSD: strcpy.3,v 1.4 1999/03/05 23:16:05 millert Exp $
+.\" $OpenBSD: strcpy.3,v 1.5 1999/03/06 23:36:27 millert Exp $
.\"
.Dd June 29, 1991
.Dt STRCPY 3
@@ -127,7 +127,7 @@ guarantee to NUL-terminate the string itself, we must do this by hand.
char buf[BUFSIZ];
(void)strncpy(buf, input, sizeof(buf) - 1);
-buf[sizeof(buf) - 1] = '\\0';
+buf[sizeof(buf) - 1] = '\e0';
.Ed
.Pp
Note that
@@ -136,7 +136,7 @@ is a better choice for this kind of operation. The equivalent using
.Xr strlcpy 3
is simply:
.Bd -literal -offset indent
-(void)strncpy(buf, input, sizeof(buf));
+(void)strlcpy(buf, input, sizeof(buf));
.Ed
.Sh SEE ALSO
.Xr bcopy 3 ,