]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[master] Using the default value of second parameter for substr
authorTomek Mrugalski <tomasz@isc.org>
Mon, 15 Oct 2012 13:55:19 +0000 (15:55 +0200)
committerTomek Mrugalski <tomasz@isc.org>
Mon, 15 Oct 2012 13:55:19 +0000 (15:55 +0200)
src/lib/dhcp/lease_mgr.cc

index d09bd583c07c2f51e2b43946f00fc86843857582..8291df3e6138dbb65ff09f3792314a8638ebaaf0 100644 (file)
@@ -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