HomeClusterLabs Projects

Refactor: libcrmcommon: Avoid snprintf() in crm_write_blackbox()

Description

Refactor: libcrmcommon: Avoid snprintf() in crm_write_blackbox()

NAME_MAX isn't uniformly enforced (see URL below), and this avoids the
need to explicitly error-check snprintf().

www.gnu.org/software/libc/manual/html_node/Limits-for-Files.html

Ref T974

Signed-off-by: Reid Wahl <nrwahl@protonmail.com>

Details

Provenance
nrwahl2Authored on Sun, Jun 22, 9:07 PM
Parents
rP1315fd486873: Refactor: libcrmcommon: Error-check snprintf() in pcmk__lock_pidfile()
Branches
Unknown
Tags
Unknown
Tasks
T974: Error-check snprintf() calls