aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--man3/basename.36
1 files changed, 5 insertions, 1 deletions
diff --git a/man3/basename.3 b/man3/basename.3
index 2deb5cc332..1032378e76 100644
--- a/man3/basename.3
+++ b/man3/basename.3
@@ -83,7 +83,11 @@ and
.BR basename ()
may modify the contents of
.IR path ,
-so copies should be passed to these functions.
+so a copy should be passed when calling one of these functions.
+(Because either function may return a pointer to some part of
+.IR path ,
+the copy should not be freed until the pointer returned by
+the function is no longer required.)
Furthermore,
.BR dirname ()
and