Skip to content

Commit

Permalink
Fix Clang Buffer Warning
Browse files Browse the repository at this point in the history
  • Loading branch information
AlbertShown committed Nov 22, 2024
1 parent e67788a commit 9d2b80d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/webui.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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);
}
}
}

Expand Down

0 comments on commit 9d2b80d

Please sign in to comment.