Use dynamic buffer to build session configuration path
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Mon, 4 Jun 2018 15:24:26 +0000 (11:24 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Mon, 4 Jun 2018 16:00:13 +0000 (12:00 -0400)
commitcce35f915c90e726fdaf701ff2c2c504fcd3f0bc
treeaa22493924d0cec0b276a19fb1aaece42e96bdad
parentd2e67842b4b31399cd581edcbf21fbf8bd2ca1f0
Use dynamic buffer to build session configuration path

Re-use the dynamic buffer interface to build the session
configuration path. The main benefit here is silencing a source
string truncation warning emitted by GCC 8. However, this
interface is also simpler to use than manually building the
path.

The LTTNG_PATH_MAX is still enforced, but there is no real
need to restrict paths to that size. This could be removed if
it ever poses a problem.

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/common/config/session-config.c
This page took 0.026208 seconds and 4 git commands to generate.