[Commits] [SCM] claws branch, gtk3, updated. 4.0.0-108-g63e9f6696
wwp at claws-mail.org
wwp at claws-mail.org
Fri Sep 3 07:37:13 UTC 2021
The branch, gtk3 has been updated
via 63e9f669694a07278a21c8b6f9869dcc1b6be8b4 (commit)
from 45c1dc4e6e39f9d5ac83816302d043b5dee565e6 (commit)
Summary of changes:
src/plugins/bogofilter/bogofilter.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
- Log -----------------------------------------------------------------
commit 63e9f669694a07278a21c8b6f9869dcc1b6be8b4
Author: wwp <subscript at free.fr>
Date: Fri Sep 3 09:35:39 2021 +0200
Bogofilter: use BUFFSIZE to dimension the exchange buffer w/ bogofilter.
Use the proper buffer size (tmpbuf).
diff --git a/src/plugins/bogofilter/bogofilter.c b/src/plugins/bogofilter/bogofilter.c
index a65b402b5..50841a203 100644
--- a/src/plugins/bogofilter/bogofilter.c
+++ b/src/plugins/bogofilter/bogofilter.c
@@ -174,7 +174,7 @@ static void bogofilter_do_filter(BogoFilterData *data)
GSList *cur = NULL;
int total = 0, curnum = 1;
gchar *file = NULL;
- gchar buf[BUFSIZ];
+ gchar buf[BUFFSIZE];
total = g_slist_length(data->msglist);
@@ -273,7 +273,7 @@ static void bogofilter_do_filter(BogoFilterData *data)
if (claws_fwrite(tmpstr, 1, strlen(tmpstr), output) < strlen(tmpstr)) {
err = TRUE;
} else {
- while (claws_fgets(tmpbuf, sizeof(buf), input)) {
+ while (claws_fgets(tmpbuf, sizeof(tmpbuf), input)) {
if (claws_fputs(tmpbuf, output) == EOF) {
err = TRUE;
break;
-----------------------------------------------------------------------
hooks/post-receive
--
Claws Mail
More information about the Commits
mailing list