HomeFreeBSD

strfmon_test: Reserve space for the null terminator

Description

strfmon_test: Reserve space for the null terminator

Otherwise strfmon(3) could overflow the buffer.

Here is mostly done for correctness and illustrative purposes, as there
is no chance it could actually happen.

Reviewed by: kib
PR: 267410
Github PR: #620
MFC after: 1 week

Details

Provenance
jlduran_gmail.comAuthored on Oct 27 2022, 10:01 AM
kibCommitted on Oct 29 2022, 9:08 PM
Parents
rGd96088b3ab5f: strfmon_l(3): Add name to the man page
Branches
Unknown
Tags
Unknown