util/StringUtil: use IsWhitespaceOrNull() in StripRight()

The null byte is whitespace, too.
This commit is contained in:
Max Kellermann 2014-08-07 15:16:12 +02:00
parent f860a2fbd6
commit 74aafe6a10

View File

@ -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;