diff options
author | millert <> | 2016-05-26 21:30:13 +0000 |
---|---|---|
committer | millert <> | 2016-05-26 21:30:13 +0000 |
commit | 8e605250dfc27cffdcec79d01d353f43b4eddce1 (patch) | |
tree | 7f3d18430dd528b7c50f88e395fcb7167377a0df | |
parent | 5a101547970b215a54782c732b34268436dad5fa (diff) | |
download | openbsd-8e605250dfc27cffdcec79d01d353f43b4eddce1.tar.gz openbsd-8e605250dfc27cffdcec79d01d353f43b4eddce1.tar.bz2 openbsd-8e605250dfc27cffdcec79d01d353f43b4eddce1.zip |
The destination string is declared as "s" but referred to as "dst"
in some cases. Be consistent and use "dst" everywhere like for
strlcat(3) and strncat(3). From Tim Kuijsten.
-rw-r--r-- | src/lib/libc/string/strcat.3 | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/lib/libc/string/strcat.3 b/src/lib/libc/string/strcat.3 index 7368d08e4b..76032c8e8f 100644 --- a/src/lib/libc/string/strcat.3 +++ b/src/lib/libc/string/strcat.3 | |||
@@ -1,4 +1,4 @@ | |||
1 | .\" $OpenBSD: strcat.3,v 1.17 2014/04/19 11:30:40 deraadt Exp $ | 1 | .\" $OpenBSD: strcat.3,v 1.18 2016/05/26 21:30:13 millert Exp $ |
2 | .\" | 2 | .\" |
3 | .\" Copyright (c) 1990, 1991 The Regents of the University of California. | 3 | .\" Copyright (c) 1990, 1991 The Regents of the University of California. |
4 | .\" All rights reserved. | 4 | .\" All rights reserved. |
@@ -31,7 +31,7 @@ | |||
31 | .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | 31 | .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
32 | .\" SUCH DAMAGE. | 32 | .\" SUCH DAMAGE. |
33 | .\" | 33 | .\" |
34 | .Dd $Mdocdate: April 19 2014 $ | 34 | .Dd $Mdocdate: May 26 2016 $ |
35 | .Dt STRCAT 3 | 35 | .Dt STRCAT 3 |
36 | .Os | 36 | .Os |
37 | .Sh NAME | 37 | .Sh NAME |
@@ -40,14 +40,14 @@ | |||
40 | .Sh SYNOPSIS | 40 | .Sh SYNOPSIS |
41 | .In string.h | 41 | .In string.h |
42 | .Ft char * | 42 | .Ft char * |
43 | .Fn strcat "char *s" "const char *append" | 43 | .Fn strcat "char *dst" "const char *append" |
44 | .Sh DESCRIPTION | 44 | .Sh DESCRIPTION |
45 | The | 45 | The |
46 | .Fn strcat | 46 | .Fn strcat |
47 | function appends a copy of the NUL-terminated string | 47 | function appends a copy of the NUL-terminated string |
48 | .Fa append | 48 | .Fa append |
49 | to the end of the NUL-terminated string | 49 | to the end of the NUL-terminated string |
50 | .Fa s , | 50 | .Fa dst , |
51 | then adds a terminating | 51 | then adds a terminating |
52 | .Ql \e0 . | 52 | .Ql \e0 . |
53 | .Pp | 53 | .Pp |
@@ -60,7 +60,7 @@ subsequent memory will be damaged. | |||
60 | The | 60 | The |
61 | .Fn strcat | 61 | .Fn strcat |
62 | function return the pointer | 62 | function return the pointer |
63 | .Fa s . | 63 | .Fa dst . |
64 | .Sh SEE ALSO | 64 | .Sh SEE ALSO |
65 | .Xr strlcpy 3 , | 65 | .Xr strlcpy 3 , |
66 | .Xr wcscat 3 , | 66 | .Xr wcscat 3 , |