HomeClusterLabs Projects

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

Description

Refactor: libcrmcommon: Avoid snprintf() in pcmk__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, 11:05 PM
Parents
rP4c17a606c121: Refactor: libcrmcommon: Allow '=' in pcmk__set_env_option()
Branches
Unknown
Tags
Unknown
Tasks
T974: Error-check snprintf() calls