From: Jérémie Galarneau Date: Sat, 14 Sep 2019 20:53:22 +0000 (-0400) Subject: relayd: clean-up: strncpy uses the length of the source as length X-Git-Url: http://git.efficios.com/?p=lttng-tools.git;a=commitdiff_plain;h=885e05c50f81e77fc3a14a36064c4ef702127cd7;hp=885e05c50f81e77fc3a14a36064c4ef702127cd7 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 ---