[Commits] [SCM] claws branch, master, updated. 3.15.0-4-ge6db5f2
mones at claws-mail.org
mones at claws-mail.org
Thu Mar 30 00:45:07 CEST 2017
The branch, master has been updated
via e6db5f2b301576156a8d56fb48b81ac9bffd0398 (commit)
from 8819febec59e3d5421b0cd4d7882d6524c375bcf (commit)
Summary of changes:
src/compose.c | 2 +-
src/mimeview.c | 4 ++--
src/plugins/archive/archiver_gtk.c | 2 +-
3 files changed, 4 insertions(+), 4 deletions(-)
- Log -----------------------------------------------------------------
commit e6db5f2b301576156a8d56fb48b81ac9bffd0398
Author: Andreas Bierfert <andreas.bierfert at lowlatency.de>
Date: Wed Mar 29 10:03:11 2017 +0200
Fix bug #3796 format-security warnings in alertpanel_ use
This patch fixes format-security warnings in alertpanel_ use by passing
"%s" as string and the buffer as va argument if no other va arguments
are present.
diff --git a/src/compose.c b/src/compose.c
index 4a29775..b7a7f76 100644
--- a/src/compose.c
+++ b/src/compose.c
@@ -8792,7 +8792,7 @@ static void compose_template_apply_fields_error(const gchar *header)
tr = g_strdup(C_("'%s' stands for a header name",
"Template '%s' format error."));
text = g_strdup_printf(tr, prefs_common_translated_header_name(header));
- alertpanel_error(text);
+ alertpanel_error("%s", text);
g_free(text);
g_free(tr);
diff --git a/src/mimeview.c b/src/mimeview.c
index 305b5e5..3ffdd18 100644
--- a/src/mimeview.c
+++ b/src/mimeview.c
@@ -1879,7 +1879,7 @@ static void mimeview_save_all_info(gint errors, gint total)
"%d files saved successfully.",
total),
total);
- alertpanel_notice(msg);
+ alertpanel_notice("%s", msg);
g_free(msg);
} else {
gchar *msg1 = g_strdup_printf(
@@ -1892,7 +1892,7 @@ static void mimeview_save_all_info(gint errors, gint total)
"%s, %d files failed.",
errors),
msg1, errors);
- alertpanel_warning(msg2);
+ alertpanel_warning("%s", msg2);
g_free(msg2);
g_free(msg1);
}
diff --git a/src/plugins/archive/archiver_gtk.c b/src/plugins/archive/archiver_gtk.c
index 19a842d..ca74c3b 100644
--- a/src/plugins/archive/archiver_gtk.c
+++ b/src/plugins/archive/archiver_gtk.c
@@ -576,7 +576,7 @@ static gboolean archiver_save_files(struct ArchivePage* page) {
if (aval != G_ALERTALTERNATE)
return FALSE;
} else {
- alertpanel_error(msg);
+ alertpanel_error("%s", msg);
g_free(msg);
return FALSE;
}
-----------------------------------------------------------------------
hooks/post-receive
--
Claws Mail
More information about the Commits
mailing list