diff options
author | Max Kellermann <max@duempel.org> | 2014-08-07 15:16:12 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-08-07 16:08:02 +0200 |
commit | 74aafe6a105f807f4ee2a8c59096aa82d8432b67 (patch) | |
tree | 53b50e89ba750b405fe4f47afdc83d275f0b4ad8 /src | |
parent | f860a2fbd693cc9ce166cdba7491cdd5071ca34a (diff) | |
download | mpd-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.cxx | 2 |
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; |