mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-11-07 21:50:08 +01:00
Use ffStrbufEndsWithC instead of custom impl
This commit is contained in:
+1
-1
@@ -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';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user