[prev in list] [next in list] [prev in thread] [next in thread] 

List:       squid-cvs
Subject:    /bzr/squid3/trunk/ r9520: fix adaptation service config parsing
From:       Christos Tsantilas <chtsanti () users ! sourceforge ! net>
Date:       2009-02-20 16:54:40
Message-ID: 20090220170005.29878.qmail () squid-cache ! org
[Download RAW message or body]

--===============1102231805==
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

------------------------------------------------------------
revno: 9520
committer: Christos Tsantilas <chtsanti@users.sourceforge.net>
branch nick: TRUNK
timestamp: Fri 2009-02-20 18:54:40 +0200
message:
  fix adaptation service config parsing
modified:
  src/adaptation/ServiceConfig.cc

--===============1102231805==
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"; name="r9520.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

=== modified file 'src/adaptation/ServiceConfig.cc'
--- a/src/adaptation/ServiceConfig.cc	2009-02-17 08:40:45 +0000
+++ b/src/adaptation/ServiceConfig.cc	2009-02-20 16:54:40 +0000
@@ -76,7 +76,7 @@
     // extract scheme and use it as the service_configConfig protocol
     const char *schemeSuffix = "://";
     if (const String::size_type schemeEnd=uri.find(schemeSuffix))
-        protocol=uri.substr(0,schemeEnd-1);
+        protocol=uri.substr(0,schemeEnd);
 
     debugs(3, 5, HERE << cfg_filename << ':' << config_lineno << ": " <<
            "service protocol is " << protocol);


--===============1102231805==--
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic