HomeClusterLabs Projects

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

Description

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

We don't error-check the return code, and the offset update idiom is
painful to look at. It won't hurt us to do a tiny bit more string
allocation in the heap for readability. We already do a ton of
allocation for XML and Pacemaker data structures.

Ref T974

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

Details

Provenance
nrwahl2Authored on Mon, Jun 16, 8:06 PM
Parents
rPd5e36954111d: Merge pull request #3906 from clumens/no-more-coccinelle
Branches
Unknown
Tags
Unknown
Tasks
T974: Error-check snprintf() calls