Project

General

Profile

Actions

Bug #6168

closed

strlcpy() does not return s1

Added by Marcel Telka over 6 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Low
Category:
manpage - manual pages
Start date:
2015-08-28
Due date:
% Done:

100%

Estimated time:
Difficulty:
Bite-size
Tags:
needs-triage
Gerrit CR:

Description

In both string(3c) and string(9f) man pages there is this wording used:

   strcpy(), strncpy(), strlcpy()
       The strcpy() function copies string s2 to s1, including the terminating
       null character, stopping after the null character has been copied.  The
       strncpy() function copies exactly n bytes, truncating s2 or adding null
       characters to s1 if necessary. The result will not be null-terminated
       if the length of s2 is n or more. Each function returns s1.  If copying

Obviously, the strlcpy() does not return s1, so the following sentence:

Each function returns s1.

should be changed to:

Both strcpy() and strncpy() functions returns s1.
Actions

Also available in: Atom PDF