From: Jérémie Galarneau Date: Fri, 6 Sep 2019 16:21:14 +0000 (-0400) Subject: Fix: strnlen is not defined on Solaris 10 X-Git-Tag: v2.11.0-rc3~4 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=6d54d51978534159d189622e2e3660d10c15262d;p=lttng-tools.git Fix: strnlen is not defined on Solaris 10 strnlen does not exist on Solaris 10. Use the lttng_strnlen compatibility wrapper. Signed-off-by: Jérémie Galarneau --- diff --git a/src/common/trace-chunk.c b/src/common/trace-chunk.c index e853d7366..40e612800 100644 --- a/src/common/trace-chunk.c +++ b/src/common/trace-chunk.c @@ -410,7 +410,7 @@ bool is_valid_chunk_name(const char *name) return false; } - len = strnlen(name, LTTNG_NAME_MAX); + len = lttng_strnlen(name, LTTNG_NAME_MAX); if (len == 0 || len == LTTNG_NAME_MAX) { return false; }