Commit 74aafe6a authored by Max Kellermann's avatar Max Kellermann

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

The null byte is whitespace, too.
parent f860a2fb
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment