From 1262ac997fa5fad051bd74b158ca00709348ef37 Mon Sep 17 00:00:00 2001 From: Ichthyostega Date: Fri, 4 Mar 2016 23:16:34 +0100 Subject: [PATCH] Bugfix: logic in string join function point is, a non empty iterator may sill yield an empty string --- src/lib/format-util.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/format-util.hpp b/src/lib/format-util.hpp index b70bc0b5c..80b17dd15 100644 --- a/src/lib/format-util.hpp +++ b/src/lib/format-util.hpp @@ -200,7 +200,7 @@ namespace util { // chop off last delimiter size_t len = buffer.str().length(); - ASSERT (len > delim.length()); + ASSERT (len >= delim.length()); return buffer.str().substr(0, len - delim.length()); }