util/StringUtil: use IsWhitespaceOrNull() in StripRight()
The null byte is whitespace, too.
This commit is contained in:
parent
f860a2fbd6
commit
74aafe6a10
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user