Loading...
--- Libc/Libc-1725.40.4/string/FreeBSD/strcat.3
+++ Libc/Libc-763.12/string/FreeBSD/strcat.3
@@ -44,26 +44,9 @@
.Sh SYNOPSIS
.In string.h
.Ft char *
-.Fo strcat
-.Fa "char *restrict s1"
-.Fa "const char *restrict s2"
-.Fc
+.Fn strcat "char * restrict s" "const char * restrict append"
.Ft char *
-.Fo strncat
-.Fa "char *restrict s1"
-.Fa "const char *restrict s2"
-.Fa "size_t n"
-.Fc
-.Sh ADMONISHMENT
-.Pp
-.ti +8
-.Pp
-YOU SHOULD ALMOST CERTAINLY USE
-.Fn strlcat
-INSTEAD.
-.ti +8
-.Pp
-See "Security Considerations" below.
+.Fn strncat "char * restrict s" "const char * restrict append" "size_t count"
.Sh DESCRIPTION
The
.Fn strcat
@@ -71,27 +54,24 @@
.Fn strncat
functions
append a copy of the null-terminated string
-.Fa s2
+.Fa append
to the end of the null-terminated string
-.Fa s1 ,
+.Fa s ,
then add a terminating
.Ql \e0 .
The string
-.Fa s1
+.Fa s
must have sufficient space to hold the result.
.Pp
The
.Fn strncat
function
appends not more than
-.Fa n
+.Fa count
characters from
-.Fa s2 ,
+.Fa append ,
and then adds a terminating
.Ql \e0 .
-.Pp
-The source and destination strings should not overlap, as the
-behavior is undefined.
.Sh RETURN VALUES
The
.Fn strcat
@@ -99,7 +79,7 @@
.Fn strncat
functions
return the pointer
-.Fa s1 .
+.Fa s .
.Sh SECURITY CONSIDERATIONS
The
.Fn strcat
@@ -131,7 +111,7 @@
void
foo(const char *arbitrary_string)
{
- char onstack[8] = "";
+ char onstack[8];
#if defined(BAD)
/*