[Bug 206176] Non-null-terminated arrays in descriptions of strn* and wcsn* functions

From: <bugzilla-noreply_at_freebsd.org>
Date: Fri, 01 Oct 2021 06:20:39 UTC

Felix Johnson <felix.the.red@gmail.com> changed:

           What    |Removed                     |Added
 Attachment #228303|                            |maintainer-approval?(felix.
              Flags|                            |the.red@gmail.com)

--- Comment #1 from Felix Johnson <felix.the.red@gmail.com> ---
Created attachment 228303
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=228303&action=edit
Patch for strcasecmp(3), strcat(3), strcmp(3), strcpy(3), strdup(3)

Update documentation for strcasecmp(3), strcat(3), strcmp(3), strcpy(3), and
strdup(3) for length-limited operations (strncasecmp, strncat, strncmp, etc.):
- Mention that characters after a null character are not compared or copied
- Mention that inputs may or may not be null-terminated
- Refer to inputs as arrays instead of strings as appropriate
- Update standards references to C11 where appropriate

Note: There is no mdoc standards macro for C17 as of this posting, or I would
have used it.

You are receiving this mail because:
You are the assignee for the bug.