Revert some changes

This commit is contained in:
Linus Dierheimer
2022-09-23 19:48:55 +02:00
parent 007ded2883
commit 64d64d5050
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -1445,7 +1445,7 @@ int main(int argc, const char** argv)
//If we don't have a custom structure, use the default one
if(data.structure.length == 0)
ffStrbufAppendS(&data.structure, FASTFETCH_DATATEXT_STRUCTURE);
ffStrbufSetS(&data.structure, FASTFETCH_DATATEXT_STRUCTURE);
ffStart(&instance);
+1 -1
View File
@@ -43,7 +43,7 @@ void ffStrbufEnsureFree(FFstrbuf* strbuf, uint32_t free)
uint32_t allocate = strbuf->allocated;
if(allocate < 2)
allocate = FASTFETCH_STRBUF_DEFAULT_ALLOC;
allocate = 2;
while((strbuf->length + free + 1) > allocate) // + 1 for the null byte
allocate *= 2;