From 74aafe6a105f807f4ee2a8c59096aa82d8432b67 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 7 Aug 2014 15:16:12 +0200 Subject: util/StringUtil: use IsWhitespaceOrNull() in StripRight() The null byte is whitespace, too. --- src/util/StringUtil.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/util/StringUtil.cxx b/src/util/StringUtil.cxx index e68c98444..49a311a5f 100644 --- a/src/util/StringUtil.cxx +++ b/src/util/StringUtil.cxx @@ -38,7 +38,7 @@ StripLeft(const char *p) size_t StripRight(const char *p, size_t length) { - while (length > 0 && IsWhitespaceNotNull(p[length - 1])) + while (length > 0 && IsWhitespaceOrNull(p[length - 1])) --length; return length; -- cgit v1.2.3