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>
Fri, 11 Sep 2020 15:19:27 +0000 (11:19 -0400)
commit48c24aea283e0f749e844c2aecc1139b7560fff1
tree7ab8dbbc06f2d62b9370dd21fe54d55809a945d8
parent2f8d430ce8e8429d5278d77ce4627a49c82403bf
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.025461 seconds and 4 git commands to generate.