X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=src%2Fcommon%2Fmacros.h;h=0e11d3c7ac2f8179ea98bda74293c91158d6b2c2;hb=e593ee026ebb70c2d0b1e789c9bb135748879a00;hp=9304388554d0af82e61ab6ae2e0abddca933960d;hpb=f6835b82a8dbb3a9688c7b28fd4d673dca371272;p=lttng-tools.git diff --git a/src/common/macros.h b/src/common/macros.h index 930438855..0e11d3c7a 100644 --- a/src/common/macros.h +++ b/src/common/macros.h @@ -21,6 +21,7 @@ #include #include +#include /* * Takes a pointer x and transform it so we can use it to access members @@ -87,7 +88,7 @@ void *zmalloc(size_t len) static inline int lttng_strncpy(char *dst, const char *src, size_t dst_len) { - if (strnlen(src, dst_len) == dst_len) { + if (lttng_strnlen(src, dst_len) == dst_len) { /* Fail since copying would result in truncation. */ return -1; }