From: Jérémie Galarneau Date: Mon, 9 Sep 2019 16:14:54 +0000 (-0400) Subject: Clean-up: format using remaining buffer len rather than total len X-Git-Tag: v2.12.0-rc1~423 X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=commitdiff_plain;h=6e7e504882cc5ca7549459d1ecafa69d3242d2d5;hp=6e7e504882cc5ca7549459d1ecafa69d3242d2d5 Clean-up: format using remaining buffer len rather than total len end_datetime_suffix is has an extra byte to contain a '-' prefix. This means that its effective length is ISO8601_STR_LEN and not its sizeof(). This is not considered a fix as time_to_iso8601_str() does not write more than ISO8601_STR_LEN (for time being). The ISO8601_STR_LEN macro is used for the buffer lengths for clarity; no behaviour change is intended. Signed-off-by: Jérémie Galarneau ---