summaryrefslogtreecommitdiff
path: root/http/http_server.hpp
diff options
context:
space:
mode:
authorEd Tanous <edtanous@google.com>2023-06-30 19:57:26 +0300
committerEd Tanous <ed@tanous.net>2023-07-11 00:03:22 +0300
commit0f83707d6f05640eeff012500ebe66a1b8020df5 (patch)
tree17f04867d57dbf0c64c2e70f659bc55ab6a86e5b /http/http_server.hpp
parentd5736ef260c5534fb2fe2ee895d62e91bc9319c3 (diff)
downloadbmcweb-0f83707d6f05640eeff012500ebe66a1b8020df5.tar.xz
Implement data pointer clang-tidy check
readability-container-data-pointer flags one error in our codebase, but can definitely find issues in patchsets. Fix the one error (that came from crow), and enable the check. Change-Id: I3045ec9a58d80300c90921dda1a2fe3859ffed7b Signed-off-by: Ed Tanous <edtanous@google.com>
Diffstat (limited to 'http/http_server.hpp')
-rw-r--r--http/http_server.hpp2
1 files changed, 1 insertions, 1 deletions
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);
}