about summary refs log tree commit diff
path: root/src/libutil/util.cc
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2012-08-01T21·21-0400
committerEelco Dolstra <eelco.dolstra@logicblox.com>2012-08-01T21·21-0400
commit79bba3782c275f03954cc9fc03f92aff487db953 (patch)
tree2440f67d392e72482bea9c6837b0a23739bfbca4 /src/libutil/util.cc
parentca94b383718f2dc5f4f14ed6eddd8d04ac9d3fc2 (diff)
Doh
Diffstat (limited to 'src/libutil/util.cc')
-rw-r--r--src/libutil/util.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libutil/util.cc b/src/libutil/util.cc
index 086574058aff..3790e2fa3bbd 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);
 }