[Commits] [SCM] claws branch, gtk3tree, updated. 4.0.0-400-g9b54a5f94

paul at claws-mail.org paul at claws-mail.org
Wed Nov 3 11:33:06 UTC 2021


The branch, gtk3tree has been updated
       via  9b54a5f94479cb9e3e9c1504ef7a8f43d5d859eb (commit)
      from  3caeca9fbd0870f679da2a092c00f95543349252 (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 9b54a5f94479cb9e3e9c1504ef7a8f43d5d859eb
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