summaryrefslogtreecommitdiff
path: root/lib/libc
diff options
context:
space:
mode:
authorJason McIntyre <jmc@cvs.openbsd.org>2016-11-12 08:58:44 +0000
committerJason McIntyre <jmc@cvs.openbsd.org>2016-11-12 08:58:44 +0000
commit02c21d543776966c8fc8e22175c337fc0f4b7961 (patch)
tree93065dd4c0079ea6aa8461a9fb0dd8cd2a676186 /lib/libc
parent35d44c2765af8809b2a4329a8acbc4b99191e9dd (diff)
the referred to EXAMPLES section is now in strncpy(3);
issue reported by scott cheloha ok otto
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/string/wcscpy.36
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libc/string/wcscpy.3 b/lib/libc/string/wcscpy.3
index 2277eb419a4..fcf01b5c57d 100644
--- a/lib/libc/string/wcscpy.3
+++ b/lib/libc/string/wcscpy.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: wcscpy.3,v 1.4 2013/09/25 21:49:31 millert Exp $
+.\" $OpenBSD: wcscpy.3,v 1.5 2016/11/12 08:58:43 jmc Exp $
.\"
.\" Copyright (c) 1990, 1991 The Regents of the University of California.
.\" All rights reserved.
@@ -31,7 +31,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.Dd $Mdocdate: September 25 2013 $
+.Dd $Mdocdate: November 12 2016 $
.Dt WCSCPY 3
.Os
.Sh NAME
@@ -122,7 +122,7 @@ and
.Fn wcsncpy
is very error-prone with respect to buffer overflows;
see the EXAMPLES section in
-.Xr strcpy 3
+.Xr strncpy 3
for correct usage.
Using
.Xr wcslcpy 3