From 79bba3782c275f03954cc9fc03f92aff487db953 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Wed, 1 Aug 2012 17:21:47 -0400 Subject: [PATCH] Doh --- src/libutil/util.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libutil/util.cc b/src/libutil/util.cc index 086574058..3790e2fa3 100644 --- a/src/libutil/util.cc +++ b/src/libutil/util.cc @@ -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); }