summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.clang-tidy1
-rw-r--r--http/http_server.hpp2
2 files changed, 2 insertions, 1 deletions
diff --git a/.clang-tidy b/.clang-tidy
index 32f7f75243..308c3f9be6 100644
--- a/.clang-tidy
+++ b/.clang-tidy
@@ -280,6 +280,7 @@ performance-unnecessary-value-param,
readability-avoid-const-params-in-decls,
readability-braces-around-statements,
readability-const-return-type,
+readability-container-data-pointer,
readability-container-size-empty,
readability-convert-member-functions-to-static,
readability-delete-null-pointer,
diff --git a/http/http_server.hpp b/http/http_server.hpp
index 258193aee3..91de8db37d 100644
--- a/http/http_server.hpp
+++ b/http/http_server.hpp
@@ -67,7 +67,7 @@ class Server
gmtime_r(&lastTimeT, &myTm);
dateStr.resize(100);
- size_t dateStrSz = strftime(&dateStr[0], 99,
+ size_t dateStrSz = strftime(dateStr.data(), dateStr.size() - 1,
"%a, %d %b %Y %H:%M:%S GMT", &myTm);
dateStr.resize(dateStrSz);
}