Skip to content

Commit f33f172

Browse files
Revert "Revert some changes"
This reverts commit 64d64d5.
1 parent 4b0b6c9 commit f33f172

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/fastfetch.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1447,7 +1447,7 @@ int main(int argc, const char** argv)
14471447

14481448
//If we don't have a custom structure, use the default one
14491449
if(data.structure.length == 0)
1450-
ffStrbufSetS(&data.structure, FASTFETCH_DATATEXT_STRUCTURE);
1450+
ffStrbufAppendS(&data.structure, FASTFETCH_DATATEXT_STRUCTURE);
14511451

14521452
ffStart(&instance);
14531453

src/util/FFstrbuf.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ void ffStrbufEnsureFree(FFstrbuf* strbuf, uint32_t free)
4343

4444
uint32_t allocate = strbuf->allocated;
4545
if(allocate < 2)
46-
allocate = 2;
46+
allocate = FASTFETCH_STRBUF_DEFAULT_ALLOC;
4747

4848
while((strbuf->length + free + 1) > allocate) // + 1 for the null byte
4949
allocate *= 2;

0 commit comments

Comments
 (0)