Remove obsolete strbuf function

This commit is contained in:
Linus Dierheimer
2022-06-08 17:14:11 +02:00
parent 63041aa24b
commit 22a8cfdcfe
3 changed files with 11 additions and 31 deletions
+1 -1
View File
@@ -61,7 +61,7 @@ void ffAppendFDContent(int fd, FFstrbuf* buffer)
(uint32_t) readed == free
) {
buffer->length += (uint32_t) readed;
ffStrbufEnsureCapacity(buffer, (buffer->allocated * 2) - 1); // -1 for null terminator
ffStrbufEnsureFree(buffer, buffer->allocated - 1); // Doubles capacity every round. -1 for the null byte.
free = ffStrbufGetFree(buffer);
}