X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=blobdiff_plain;f=formats%2Fctf%2Ftypes%2Fstring.c;fp=formats%2Fctf%2Ftypes%2Fstring.c;h=a9cff6de28ceb3fe1a33f51c38d1d7546292c599;hp=c6935162d6c823b31315300a454bdf9109862739;hb=832a077943aafebd4cf1504718cfb434dae115c0;hpb=540e5bd216ccceabc756e615a0323b4ffb972c60 diff --git a/formats/ctf/types/string.c b/formats/ctf/types/string.c index c6935162..a9cff6de 100644 --- a/formats/ctf/types/string.c +++ b/formats/ctf/types/string.c @@ -29,7 +29,7 @@ #include #include #include /* C99 limits */ -#include +#include int ctf_string_read(struct bt_stream_pos *ppos, struct bt_definition *definition) { @@ -53,7 +53,7 @@ int ctf_string_read(struct bt_stream_pos *ppos, struct bt_definition *definition if (max_len_bits < 0) return -EFAULT; /* Add \0, counting in bytes. */ - len = strnlen(srcaddr, (size_t) max_len_bits / CHAR_BIT) + 1; + len = bt_strnlen(srcaddr, (size_t) max_len_bits / CHAR_BIT) + 1; /* Truncated string, unexpected. Trace probably corrupted. */ if (srcaddr[len - 1] != '\0') return -EFAULT;