summaryrefslogtreecommitdiff
path: root/http/http_server.hpp
diff options
context:
space:
mode:
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);
}