HomeClusterLabs Projects

Refactor: libcrmcommon: Avoid sprintf() in pcmk__time_format_hr()

Description

Refactor: libcrmcommon: Avoid sprintf() in pcmk__time_format_hr()

We weren't error-checking sprintf() before. Just use
g_string_append_printf() so that the error checking is done for us.

Ref T974

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

Details

Provenance
nrwahl2Authored on Thu, Jun 19, 5:05 AM
Parents
rP8d47cea0b1b4: Refactor: libcrmcommon: Clarify fractional seconds in time format
Branches
Unknown
Tags
Unknown
Tasks
T974: Error-check snprintf() calls