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/3.3.x Commit: 1c7aa30004741dd94cd56ecfe02648c7f47e2b8c Parents: 114ca2a Author: Alan M. Carroll <[email protected]> Authored: Thu Aug 1 11:21:48 2013 -0500 Committer: Alan M. Carroll <[email protected]> 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]);
