mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-09-13 10:52:08 +02:00
+1
-1
@@ -1447,7 +1447,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)
|
||||
ffStrbufSetS(&data.structure, FASTFETCH_DATATEXT_STRUCTURE);
|
||||
ffStrbufAppendS(&data.structure, FASTFETCH_DATATEXT_STRUCTURE);
|
||||
|
||||
ffStart(&instance);
|
||||
|
||||
|
||||
+1
-1
@@ -43,7 +43,7 @@ void ffStrbufEnsureFree(FFstrbuf* strbuf, uint32_t free)
|
||||
|
||||
uint32_t allocate = strbuf->allocated;
|
||||
if(allocate < 2)
|
||||
allocate = 2;
|
||||
allocate = FASTFETCH_STRBUF_DEFAULT_ALLOC;
|
||||
|
||||
while((strbuf->length + free + 1) > allocate) // + 1 for the null byte
|
||||
allocate *= 2;
|
||||
|
||||
Reference in New Issue
Block a user