Clean-up: use sizeof instead of repeating string length constant
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Wed, 16 Mar 2022 15:52:42 +0000 (11:52 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Wed, 16 Mar 2022 15:52:42 +0000 (11:52 -0400)
commit2d6df81a3d233d7aaf34b874087555e72b105877
tree730b01a54b4c657916b4fc7e64993a534b490039
parent0283afa961253376a5e18de140d29fffd9e89ae3
Clean-up: use sizeof instead of repeating string length constant

Looking into a number of coverity reports (false positives), I
identified a number of sites which use the maximal symbol length
constant when the actual size of an array can be used. This will prevent
mismatches in the future should the array sizes change.

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Change-Id: Ia74f43d3871fdce60affbde068401b58c84b09ad
src/bin/lttng-sessiond/trace-kernel.cpp
src/common/channel.cpp
src/common/event-rule/user-tracepoint.cpp
src/common/event.cpp
This page took 0.027262 seconds and 4 git commands to generate.