diff --git a/src/util/StringStrip.cxx b/src/util/StringStrip.cxx index 9aaf7d49..a1d505ce 100644 --- a/src/util/StringStrip.cxx +++ b/src/util/StringStrip.cxx @@ -1,5 +1,5 @@ /* - * Copyright 2009-2018 Max Kellermann + * Copyright 2009-2020 Max Kellermann * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions @@ -30,7 +30,7 @@ #include "StringStrip.hxx" #include "CharUtil.hxx" -#include +#include const char * StripLeft(const char *p) noexcept @@ -71,7 +71,7 @@ StripRight(const char *p, std::size_t length) noexcept void StripRight(char *p) noexcept { - std::size_t old_length = strlen(p); + std::size_t old_length = std::strlen(p); std::size_t new_length = StripRight(p, old_length); p[new_length] = 0; } diff --git a/src/util/StringStrip.hxx b/src/util/StringStrip.hxx index 90207540..9e1ac787 100644 --- a/src/util/StringStrip.hxx +++ b/src/util/StringStrip.hxx @@ -1,5 +1,5 @@ /* - * Copyright 2009-2018 Max Kellermann + * Copyright 2009-2020 Max Kellermann * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions