This commit is contained in:
Eelco Dolstra 2012-08-01 17:21:47 -04:00
parent ca94b38371
commit 79bba3782c

View file

@ -1018,7 +1018,7 @@ string concatStringsSep(const string & sep, const Strings & ss)
string chomp(const string & s)
{
size_t i = s.find_last_not_of(" \n\r\t");
return i == string::npos ? "" : string(s, 0, i);
return i == string::npos ? "" : string(s, 0, i + 1);
}