Browse Source

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

Tomek Mrugalski 12 years ago
parent
commit
9565a7939e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/lib/dhcp/lease_mgr.cc

+ 1 - 1
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