aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-08-07 15:16:12 +0200
committerMax Kellermann <max@duempel.org>2014-08-07 16:08:02 +0200
commit74aafe6a105f807f4ee2a8c59096aa82d8432b67 (patch)
tree53b50e89ba750b405fe4f47afdc83d275f0b4ad8 /src
parentf860a2fbd693cc9ce166cdba7491cdd5071ca34a (diff)
downloadmpd-74aafe6a105f807f4ee2a8c59096aa82d8432b67.tar.gz
mpd-74aafe6a105f807f4ee2a8c59096aa82d8432b67.tar.xz
mpd-74aafe6a105f807f4ee2a8c59096aa82d8432b67.zip
util/StringUtil: use IsWhitespaceOrNull() in StripRight()
The null byte is whitespace, too.
Diffstat (limited to 'src')
-rw-r--r--src/util/StringUtil.cxx2
1 files changed, 1 insertions, 1 deletions
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;