mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-10-30 09:33:39 +01:00
all keys can now be set!
This commit is contained in:
@@ -88,6 +88,8 @@ void ffStrbufEnsureCapacity(FFstrbuf* strbuf, uint32_t allocate)
|
||||
void ffStrbufEnsureFree(FFstrbuf* strbuf, uint32_t free)
|
||||
{
|
||||
uint32_t allocate = strbuf->allocated;
|
||||
if(allocate < 2)
|
||||
allocate = 2;
|
||||
while((strbuf->length + free) > allocate)
|
||||
allocate *= 2;
|
||||
ffStrbufEnsureCapacity(strbuf, allocate);
|
||||
|
||||
Reference in New Issue
Block a user