aboutsummaryrefslogtreecommitdiffstats
path: root/man7
diff options
context:
space:
mode:
Diffstat (limited to 'man7')
-rw-r--r--man7/string_copying.75
1 files changed, 4 insertions, 1 deletions
diff --git a/man7/string_copying.7 b/man7/string_copying.7
index c8ad15c556..5b3d7768a7 100644
--- a/man7/string_copying.7
+++ b/man7/string_copying.7
@@ -218,9 +218,12 @@ Keeping the code simple
helps these overflow-detection features be more precise.
.P
When validating user input,
+code should normally not truncate,
+but instead fail and prevent the copy at all.
+.P
+In some cases,
however,
it makes sense to truncate.
-Remember to check the return value of such function calls.
.P
Functions that truncate:
.IP \[bu] 3