You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by zw...@apache.org on 2020/08/26 21:01:31 UTC
[trafficserver] branch 9.0.x updated: Fixes garbled logs when using
% log tag (#7140)
This is an automated email from the ASF dual-hosted git repository.
zwoop pushed a commit to branch 9.0.x
in repository https://gitbox.apache.org/repos/asf/trafficserver.git
The following commit(s) were added to refs/heads/9.0.x by this push:
new 24b360a Fixes garbled logs when using %<vbn> log tag (#7140)
24b360a is described below
commit 24b360a7b28ddd0d1ef704db18c8a9ddd7cd7b5d
Author: Randall Meyer <rr...@apache.org>
AuthorDate: Wed Aug 26 13:24:51 2020 -0700
Fixes garbled logs when using %<vbn> log tag (#7140)
(cherry picked from commit 1674ce260e55bfc8e781f26c11244686ee78034c)
---
proxy/logging/LogAccess.cc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/proxy/logging/LogAccess.cc b/proxy/logging/LogAccess.cc
index a394c08..08957c3 100644
--- a/proxy/logging/LogAccess.cc
+++ b/proxy/logging/LogAccess.cc
@@ -1342,7 +1342,7 @@ LogAccess::marshal_proxy_provided_cert(char *buf)
int
LogAccess::marshal_version_build_number(char *buf)
{
- int len = sizeof(appVersionInfo.BldNumStr);
+ int len = LogAccess::strlen(appVersionInfo.BldNumStr);
if (buf) {
marshal_str(buf, appVersionInfo.BldNumStr, len);
}