trafficserver-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From zw...@apache.org
Subject [trafficserver] branch master updated: TS-5063: Fixes the strlcpy that I missed
Date Mon, 28 Nov 2016 15:45:48 GMT
This is an automated email from the ASF dual-hosted git repository.

zwoop pushed a commit to branch master
in repository https://git-dual.apache.org/repos/asf/trafficserver.git

The following commit(s) were added to refs/heads/master by this push:
       new  b8f0669   TS-5063: Fixes the strlcpy that I missed
b8f0669 is described below

commit b8f06696ff18adb9b5ce59ea739cad2bf0c6f80f
Author: Leif Hedstrom <zwoop@apache.org>
AuthorDate: Mon Nov 28 08:45:18 2016 -0700

    TS-5063: Fixes the strlcpy that I missed
---
 mgmt/LocalManager.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/mgmt/LocalManager.cc b/mgmt/LocalManager.cc
index e10250d..29fd3ca 100644
--- a/mgmt/LocalManager.cc
+++ b/mgmt/LocalManager.cc
@@ -928,7 +928,7 @@ LocalManager::startProxy(const char *onetime_options)
     bool open_ports_p = false;
     char real_proxy_options[OPTIONS_SIZE];
 
-    ink_strlcpy(real_proxy_options, proxy_options, strlen(proxy_options));
+    ink_strlcpy(real_proxy_options, proxy_options, OPTIONS_SIZE);
     if (onetime_options && *onetime_options) {
       ink_strlcat(real_proxy_options, " ", OPTIONS_SIZE);
       ink_strlcat(real_proxy_options, onetime_options, OPTIONS_SIZE);

-- 
To stop receiving notification emails like this one, please contact
['"commits@trafficserver.apache.org" <commits@trafficserver.apache.org>'].

Mime
View raw message