HomeClusterLabs Projects

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

Description

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

To avoid the need to error-check snprintf() explicitly, which we have
not been doing.

Drop a couple of unit tests, since we're no longer using a fixed-size
buffer and returning an error when it's too small. Also use CPP
constants and variables where appropriate in the unit tests.

Ref T974

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

Details

Provenance
nrwahl2Authored on Fri, Jun 20, 7:16 PM
Parents
rPd37b5e2406a4: Refactor: libcrmcommon: Error-check snprintf() in pcmk_readable_score()
Branches
Unknown
Tags
Unknown
Tasks
T974: Error-check snprintf() calls