[Commits] [SCM] claws branch, gtk3, updated. 4.0.0-347-ge700a32e8
jonathan at claws-mail.org
jonathan at claws-mail.org
Fri Oct 29 18:13:43 CET 2021
The branch, gtk3 has been updated
via e700a32e8f79308d289e1e3c9bea9d482da2ca6c (commit)
from f6eff41a7d3f0368198a671fd4b4e79089cbd066 (commit)
Summary of changes:
src/plugins/pgpcore/sgpgme.c | 4 ++--
src/plugins/pgpinline/pgpinline.c | 4 ++--
src/plugins/smime/smime.c | 4 ++--
3 files changed, 6 insertions(+), 6 deletions(-)
- Log -----------------------------------------------------------------
commit e700a32e8f79308d289e1e3c9bea9d482da2ca6c
Author: Jonathan Boeing <jonathan at claws-mail.org>
Date: Fri Oct 29 10:27:13 2021 -0700
Fix build error with -Werror=format-security
diff --git a/src/plugins/pgpcore/sgpgme.c b/src/plugins/pgpcore/sgpgme.c
index 1d1775d35..09e55ec13 100644
--- a/src/plugins/pgpcore/sgpgme.c
+++ b/src/plugins/pgpcore/sgpgme.c
@@ -94,7 +94,7 @@ void cm_check_detached_sig(GTask *task,
gboolean return_err = TRUE;
gboolean cancelled = FALSE;
SigCheckTaskResult *task_result = NULL;
- char err_str[GPGERR_BUFSIZE];
+ char err_str[GPGERR_BUFSIZE] = "";
domain = g_quark_from_static_string("claws_pgpcore");
@@ -202,7 +202,7 @@ out:
return;
if (return_err)
- g_task_return_new_error(task, domain, err, err_str);
+ g_task_return_new_error(task, domain, err, "%s", err_str);
else
g_task_return_pointer(task, task_result, privacy_free_sig_check_task_result);
}
diff --git a/src/plugins/pgpinline/pgpinline.c b/src/plugins/pgpinline/pgpinline.c
index 8faad1d8c..5bd38775f 100644
--- a/src/plugins/pgpinline/pgpinline.c
+++ b/src/plugins/pgpinline/pgpinline.c
@@ -178,7 +178,7 @@ static void pgpinline_check_sig_task(GTask *task,
gboolean cancelled = FALSE;
SigCheckTaskResult *task_result = NULL;
gchar *textstr;
- char err_str[GPGERR_BUFSIZE];
+ char err_str[GPGERR_BUFSIZE] = "";
domain = g_quark_from_static_string("claws_pgpinline");
@@ -262,7 +262,7 @@ out:
return;
if (return_err)
- g_task_return_new_error(task, domain, err, err_str);
+ g_task_return_new_error(task, domain, err, "%s", err_str);
else
g_task_return_pointer(task, task_result, privacy_free_sig_check_task_result);
}
diff --git a/src/plugins/smime/smime.c b/src/plugins/smime/smime.c
index 5f8899e7e..e920936ae 100644
--- a/src/plugins/smime/smime.c
+++ b/src/plugins/smime/smime.c
@@ -235,7 +235,7 @@ static void check_pkcs7_mime_sig_task(GTask *task,
MimeInfo *created = NULL;
GString *verified;
gchar *tmp;
- char err_str[GPGERR_BUFSIZE];
+ char err_str[GPGERR_BUFSIZE] = "";
domain = g_quark_from_static_string("claws_smime");
@@ -350,7 +350,7 @@ out:
return;
if (return_err)
- g_task_return_new_error(task, domain, err, err_str);
+ g_task_return_new_error(task, domain, err, "%s", err_str);
else
g_task_return_pointer(task, task_result, privacy_free_sig_check_task_result);
}
-----------------------------------------------------------------------
hooks/post-receive
--
Claws Mail
More information about the Commits
mailing list