mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-10-29 16:26:39 +01:00
fastfetch: fix compiler warnings
This commit is contained in:
+1
-1
@@ -267,7 +267,7 @@ static void listConfigPaths(void)
|
||||
FF_LIST_FOR_EACH(FFstrbuf, folder, instance.state.platform.configDirs)
|
||||
{
|
||||
bool exists = false;
|
||||
uint32_t length = folder->length + sizeof("fastfetch");
|
||||
uint32_t length = folder->length + (uint32_t) strlen("fastfetch") + 1 /* trailing slash */;
|
||||
ffStrbufAppendS(folder, "fastfetch/config.jsonc");
|
||||
exists = ffPathExists(folder->chars, FF_PATHTYPE_FILE);
|
||||
if (!exists)
|
||||
|
||||
Reference in New Issue
Block a user