diff options
author | Alejandro Colomar <alx@kernel.org> | 2022-12-05 23:16:38 +0100 |
---|---|---|
committer | Alejandro Colomar <alx@kernel.org> | 2022-12-05 23:20:16 +0100 |
commit | b8b5be677c13883bd7d42b475579f32bc911887a (patch) | |
tree | 232379206c2e2a141f25d0b15c0af47bee880ba7 | |
parent | 5c6f6e6767abbc3571c95d23fd0c6209f190518f (diff) |
strncat.3: BUGS: Truncation
Signed-off-by: Alejandro Colomar <alx@kernel.org>
-rw-r--r-- | man3/strncat.3 | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/man3/strncat.3 b/man3/strncat.3 index fefd68c84..5ce0418cb 100644 --- a/man3/strncat.3 +++ b/man3/strncat.3 @@ -86,6 +86,13 @@ This function has no relationship with Since it doesn't know the size of the destination buffer, this function can easily write past the end of the array, being an open door to all kinds of crackers. +.PP +It can't detect truncation. +If +.I src +is not a null-terminated string, +this function will succeed silently +(for whatever definition of succeess you have). .SH SEE ALSO .BR strcpy (3), .BR string (3) |