trafficserver-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a..@apache.org
Subject git commit: TS-1976: Failure to terminate option string in traffic_manager
Date Thu, 01 Aug 2013 16:22:36 GMT
Updated Branches:
  refs/heads/master 114ca2a19 -> 1c7aa3000


TS-1976: Failure to terminate option string in traffic_manager


Project: http://git-wip-us.apache.org/repos/asf/trafficserver/repo
Commit: http://git-wip-us.apache.org/repos/asf/trafficserver/commit/1c7aa300
Tree: http://git-wip-us.apache.org/repos/asf/trafficserver/tree/1c7aa300
Diff: http://git-wip-us.apache.org/repos/asf/trafficserver/diff/1c7aa300

Branch: refs/heads/master
Commit: 1c7aa30004741dd94cd56ecfe02648c7f47e2b8c
Parents: 114ca2a
Author: Alan M. Carroll <amc@network-geographics.com>
Authored: Thu Aug 1 11:21:48 2013 -0500
Committer: Alan M. Carroll <amc@network-geographics.com>
Committed: Thu Aug 1 11:21:48 2013 -0500

----------------------------------------------------------------------
 mgmt/LocalManager.cc | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/trafficserver/blob/1c7aa300/mgmt/LocalManager.cc
----------------------------------------------------------------------
diff --git a/mgmt/LocalManager.cc b/mgmt/LocalManager.cc
index 6d1fc73..a102685 100644
--- a/mgmt/LocalManager.cc
+++ b/mgmt/LocalManager.cc
@@ -1030,9 +1030,7 @@ LocalManager::startProxy()
     }
 
     // NUL-terminate for the benefit of strtok and printf.
-    // XXX TS-1976: a small hack to work around the Vec template's
-    // dislike of storing NUL bytes.
-    real_proxy_options.append("", 1);
+    real_proxy_options.add(0);
 
     Debug("lm", "[LocalManager::startProxy] Launching %s with options '%s'\n",
           absolute_proxy_binary, &real_proxy_options[0]);


Mime
View raw message