Use ffStrbufEndsWithC instead of custom impl

This commit is contained in:
Linus Dierheimer
2022-01-01 17:28:41 +01:00
parent f73137aef8
commit 06fa8e7478
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -363,7 +363,7 @@ void ffStrbufTrimLeft(FFstrbuf* strbuf, char c)
void ffStrbufTrimRight(FFstrbuf* strbuf, char c)
{
while(strbuf->length > 0 && strbuf->chars[strbuf->length - 1] == c)
while(ffStrbufEndsWithC(strbuf, c))
--strbuf->length;
strbuf->chars[strbuf->length] = '\0';
}