relayd: clean-up: strncpy uses the length of the source as length
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Sat, 14 Sep 2019 20:53:22 +0000 (16:53 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 19 Sep 2019 19:31:49 +0000 (15:31 -0400)
commit50b02b0ca4706b7a623a191360439b53ad69e010
tree99715c322b617983fbaac4348031f01f0c032350
parentd574268fb013ce11008fa3363596fdbebdef3e58
relayd: clean-up: strncpy uses the length of the source as length

strncpy is used with the source length of both session_name and
hostname. This doesn't make sense at face value. However, this is not
a "bug" as both src and dst are guaranteed to be the same length in
all existing code paths.

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/bin/lttng-relayd/cmd-2-4.c
This page took 0.024839 seconds and 4 git commands to generate.