Parcourir la source

[1722] find_last does not need argument now

Jelte Jansen il y a 13 ans
Parent
commit
e202628c69
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      src/lib/dns/masterload.cc

+ 1 - 1
src/lib/dns/masterload.cc

@@ -55,7 +55,7 @@ stripLine(string& s, const Exception& ex) {
         s.resize(pos_semicolon);
     }
     // Remove any trailing whitespace return the resulting text.
-    s.resize(s.find_last_not_of(" /t", s.size()) + 1);
+    s.resize(s.find_last_not_of(" /t") + 1);
     return (s);
 }
 }