Clean-up: format using remaining buffer len rather than total len
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Mon, 9 Sep 2019 16:14:54 +0000 (12:14 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 19 Sep 2019 19:31:48 +0000 (15:31 -0400)
commit9eba0c6d165e5d5900a2987fc2adafc2822783f7
treed81924d7d521c4f35813d781d65d05991d5ec65a
parent653fcfe69a5814ca6de4ba248d35487b23b0c307
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 <jeremie.galarneau@efficios.com>
src/common/trace-chunk.c
This page took 0.032367 seconds and 4 git commands to generate.