Silence strncpy warning emitted by GCC 8 in lttng_strncpy()
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 1 Jun 2018 16:54:00 +0000 (12:54 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 1 Jun 2018 17:02:28 +0000 (13:02 -0400)
GCC 8 warns if the destination's length is passed to strncpy,
since that could cause the destination to not be NULL-terminated.

This is not a concern for the lttng_strncpy since it checks
that the source must not be truncated. Therefore, it is safe
to simply use strcpy().

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>

No differences found
This page took 0.025481 seconds and 4 git commands to generate.