Strengthen prohibition against overlapping in strcpy(3).
This commit is contained in:
parent
7153b8dc81
commit
3a68faac74
|
@ -30,7 +30,7 @@
|
|||
.\" SUCH DAMAGE.
|
||||
.\"
|
||||
.\" from: @(#)strcpy.3 8.1 (Berkeley) 6/4/93
|
||||
.\" $NetBSD: strcpy.3,v 1.22 2015/04/01 15:45:00 christos Exp $
|
||||
.\" $NetBSD: strcpy.3,v 1.23 2015/04/01 20:18:17 riastradh Exp $
|
||||
.\"
|
||||
.Dd April 1, 2015
|
||||
.Dt STRCPY 3
|
||||
|
@ -93,9 +93,11 @@ is
|
|||
.Em not
|
||||
terminated.
|
||||
.Pp
|
||||
For portability the source and destination strings should not overlap, because
|
||||
implementations are allowed to optimize character movement and the standard
|
||||
specifies that the results are undefined if they do.
|
||||
The strings
|
||||
.Fa src
|
||||
and
|
||||
.Fa dst
|
||||
may not overlap.
|
||||
.Sh RETURN VALUES
|
||||
The
|
||||
.Fn strcpy
|
||||
|
|
Loading…
Reference in New Issue