ffStrbufTrimLeft now sets a null byte at the end
This commit is contained in:
1 parent
ffd5b45b2c
commit
7da4e5b69a
1 file changed
+1
@@ -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