ffStrbufTrimLeft now sets a null byte at the end

This commit is contained in:
Linus Dierheimer
2021-04-25 19:03:59 +02:00
parent ffd5b45b2c
commit 7da4e5b69a
+1
View File
@@ -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)