userspace-probe: replace explicit null-termination check
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 10 Sep 2020 16:23:28 +0000 (12:23 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 10 Sep 2020 16:24:24 +0000 (12:24 -0400)
commitb9e63e21bd01c0deeaec2195ba912e38460bc038
treeb1516653beb9160a8841ce478bc736be46ac90df
parentf04a82006fc82e66b505b9428b0f54b533d6ddf0
userspace-probe: replace explicit null-termination check

Replace explicit null-termination checks by uses of
lttng_buffer_view_contains_string() which provides the same
guarantees and ensures the string pointer is within the view.

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Change-Id: If0038a82ad7dfe1ed0e8cdef7870d5e25d62200d
src/common/userspace-probe.c
This page took 0.02706 seconds and 5 git commands to generate.