mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-09-13 02:42:09 +02:00
ffStrbufTrimLeft now sets a null byte at the end
This commit is contained in:
@@ -295,6 +295,7 @@ void ffStrbufTrimLeft(FFstrbuf* strbuf, char c)
|
||||
|
||||
memmove(strbuf->chars, strbuf->chars + index, index);
|
||||
strbuf->length -= index;
|
||||
strbuf->chars[strbuf->length] = '\0';
|
||||
}
|
||||
|
||||
void ffStrbufTrimRight(FFstrbuf* strbuf, char c)
|
||||
|
||||
Reference in New Issue
Block a user