Clean-up: fix string truncation warning
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 5 Sep 2024 21:29:53 +0000 (21:29 +0000)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 5 Sep 2024 21:29:53 +0000 (21:29 +0000)
commit6132bde02d87b20832e158649e78089a7dd8f7fc
treefc676964fac63eaa01d81e4b1110ca4f95cae583
parentf50b6d556820ba724597c9fe760677cfbd1c9ceb
Clean-up: fix string truncation warning

Some version of g++ emits the following warning:
  'char* strncpy(char*, const char*, size_t)' output may be truncated
  copying 255 bytes from a string of length 255 [-Wstringop-truncation]

Using the internal strncpy wrapper, which checks for truncation,
fixes the problem.

Change-Id: I8ab0f2cca0247eee329b137f547d3dfed32c995f
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/bin/lttng-sessiond/trace-ust.cpp
This page took 0.025861 seconds and 4 git commands to generate.