HomeFreeBSD

Don't use hard-coded 'size' value in snprintf()

Description

Don't use hard-coded 'size' value in snprintf()

This patch changes the passing of "size" to snprintf
from hard-coded (openended) to sizeof(errbuf). This
is bringing to standard with rest of the code where-
ever 'errbuf' is used.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Arshad Hussain <arshad.hussain@aeoncomputing.com>
Closes #15003

Details

Provenance
Arshad Hussain <arshad.hussain@aeoncomputing.com>Authored on Jun 30 2023, 3:37 PM
GitHub <noreply@github.com>Committed on Jun 30 2023, 3:37 PM
Parents
rGeda32dca92a8: Fix remount when setting multiple properties.
Branches
Unknown
Tags
Unknown

Event Timeline

GitHub <noreply@github.com> committed rG6052060c133d: Don't use hard-coded 'size' value in snprintf() (authored by Arshad Hussain <arshad.hussain@aeoncomputing.com>).Jun 30 2023, 3:37 PM