mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-10-28 15:53:51 +01:00
fixed a bug in ffStrbufTrimRight
This commit is contained in:
+1
-1
@@ -293,7 +293,7 @@ void ffStrbufTrimLeft(FFstrbuf* strbuf, char c)
|
||||
if(index == 0)
|
||||
return;
|
||||
|
||||
memmove(strbuf->chars, strbuf->chars + index, index);
|
||||
memmove(strbuf->chars, strbuf->chars + index, strbuf->length - index);
|
||||
strbuf->length -= index;
|
||||
strbuf->chars[strbuf->length] = '\0';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user