projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix Solaris 10 build: use lttng_strnlen() wrapper
[lttng-tools.git]
/
src
/
common
/
macros.h
diff --git
a/src/common/macros.h
b/src/common/macros.h
index 9304388554d0af82e61ab6ae2e0abddca933960d..0e11d3c7ac2f8179ea98bda74293c91158d6b2c2 100644
(file)
--- a/
src/common/macros.h
+++ b/
src/common/macros.h
@@
-21,6
+21,7
@@
#include <stdlib.h>
#include <string.h>
#include <stdlib.h>
#include <string.h>
+#include <common/compat/string.h>
/*
* Takes a pointer x and transform it so we can use it to access members
/*
* 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)
{
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;
}
/* Fail since copying would result in truncation. */
return -1;
}
This page took
0.026255 seconds
and
5
git commands to generate.