From 9d2b80d3b350671bf5289bf55beb39a8e6b39ba7 Mon Sep 17 00:00:00 2001 From: Albert Date: Fri, 22 Nov 2024 17:34:16 -0500 Subject: [PATCH] Fix Clang Buffer Warning --- src/webui.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/webui.c b/src/webui.c index 09ef886b0..47d07eb2f 100644 --- a/src/webui.c +++ b/src/webui.c @@ -1504,8 +1504,8 @@ static void _webui_remove_firefox_profile_ini(const char* path, const char* prof if (!file) return; - char buffer[4096] = {0}; - char output[4096] = {0}; + char buffer[1024 * 3] = {0}; + char output[1024 * 4] = {0}; char target[128] = {0}; WEBUI_SN_PRINTF_STATIC(target, sizeof(target), "Name=%s", profile_name); @@ -1518,14 +1518,14 @@ static void _webui_remove_firefox_profile_ini(const char* path, const char* prof } if (!skip) { if (strstr(buffer, target) != NULL) { - #ifdef WEBUI_LOG printf("[Core]\t\t_webui_remove_firefox_profile_ini() -> Target found\n"); #endif skip = true; continue; - } else + } else { WEBUI_STR_CAT_STATIC(output, sizeof(output), buffer); + } } }