Skip to content

Commit 9d2b80d

Browse files
committed
Fix Clang Buffer Warning
1 parent e67788a commit 9d2b80d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/webui.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1504,8 +1504,8 @@ static void _webui_remove_firefox_profile_ini(const char* path, const char* prof
15041504
if (!file)
15051505
return;
15061506

1507-
char buffer[4096] = {0};
1508-
char output[4096] = {0};
1507+
char buffer[1024 * 3] = {0};
1508+
char output[1024 * 4] = {0};
15091509
char target[128] = {0};
15101510

15111511
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
15181518
}
15191519
if (!skip) {
15201520
if (strstr(buffer, target) != NULL) {
1521-
15221521
#ifdef WEBUI_LOG
15231522
printf("[Core]\t\t_webui_remove_firefox_profile_ini() -> Target found\n");
15241523
#endif
15251524
skip = true;
15261525
continue;
1527-
} else
1526+
} else {
15281527
WEBUI_STR_CAT_STATIC(output, sizeof(output), buffer);
1528+
}
15291529
}
15301530
}
15311531

0 commit comments

Comments
 (0)