From db8f03c184b9840af5c7c7e1734be07f8fdaa4db Mon Sep 17 00:00:00 2001 From: John Wellbelove Date: Mon, 4 Nov 2019 15:17:25 +0000 Subject: [PATCH] Changed strlen to etl::strlen --- include/etl/basic_string.h | 2 +- include/etl/bitset.h | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/include/etl/basic_string.h b/include/etl/basic_string.h index 68f38074..668e1515 100644 --- a/include/etl/basic_string.h +++ b/include/etl/basic_string.h @@ -1005,7 +1005,7 @@ namespace etl { ETL_ASSERT(position <= size(), ETL_ERROR(string_out_of_bounds)); - insert(begin() + position, s, s + strlen(s)); + insert(begin() + position, s, s + etl::strlen(s)); return *this; } diff --git a/include/etl/bitset.h b/include/etl/bitset.h index 2b0b6abe..aa5dae6d 100644 --- a/include/etl/bitset.h +++ b/include/etl/bitset.h @@ -47,6 +47,7 @@ SOFTWARE. #include "exception.h" #include "integral_limits.h" #include "binary.h" +#include "char_traits.h" #include "private/minmax_push.h" @@ -294,7 +295,7 @@ namespace etl { reset(); - size_t i = std::min(NBITS, strlen(text)); + size_t i = std::min(NBITS, etl::strlen(text)); while (i > 0) {