From a1d81b4964a59f311eda9fbed181971a7898f0b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=80=9A=E6=B4=B2?= Date: Thu, 21 Dec 2023 09:52:15 +0800 Subject: [PATCH] fastfetch: fix compiler warnings --- src/fastfetch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fastfetch.c b/src/fastfetch.c index f37d14bd5..f60ae9ad3 100644 --- a/src/fastfetch.c +++ b/src/fastfetch.c @@ -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)