BIND 10 master, updated. 9565a7939e66bb0f3bbb4f3be8778dec13582db1 [master] Using the default value of second parameter for substr

BIND 10 source code commits bind10-changes at lists.isc.org
Mon Oct 15 13:55:28 UTC 2012


The branch, master has been updated
       via  9565a7939e66bb0f3bbb4f3be8778dec13582db1 (commit)
      from  932edbb0ec8a4dbb820c6cccf4a0becd9df533c2 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 9565a7939e66bb0f3bbb4f3be8778dec13582db1
Author: Tomek Mrugalski <tomasz at isc.org>
Date:   Mon Oct 15 15:55:19 2012 +0200

    [master] Using the default value of second parameter for substr

-----------------------------------------------------------------------

Summary of changes:
 src/lib/dhcp/lease_mgr.cc |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

-----------------------------------------------------------------------
diff --git a/src/lib/dhcp/lease_mgr.cc b/src/lib/dhcp/lease_mgr.cc
index d09bd58..8291df3 100644
--- a/src/lib/dhcp/lease_mgr.cc
+++ b/src/lib/dhcp/lease_mgr.cc
@@ -45,7 +45,7 @@ LeaseMgr::LeaseMgr(const std::string& dbconfig) {
         size_t pos = token.find("=");
         if (pos != string::npos) {
             string name = token.substr(0, pos);
-            string value = token.substr(pos + 1, -1);
+            string value = token.substr(pos + 1);
             parameters_.insert(pair<string,string>(name, value));
         } else {
             isc_throw(InvalidParameter, "Cannot parse " << token



More information about the bind10-changes mailing list