[Commits] [SCM] claws branch, master, updated. 3.11.1-197-gf3d8486
mones at claws-mail.org
mones at claws-mail.org
Thu Jul 9 03:19:02 CEST 2015
The branch, master has been updated
via f3d84861e4d64dcb7453f9f827883a33e764e6bc (commit)
from 951a0fe24cfbc9be5f7c31ec0eee09a58759409a (commit)
Summary of changes:
src/compose.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
- Log -----------------------------------------------------------------
commit f3d84861e4d64dcb7453f9f827883a33e764e6bc
Author: Ricardo Mones <ricardo at mones.org>
Date: Thu Jul 9 03:14:56 2015 +0200
Fix build with hardened compiler flags
Error was:
compose.c: In function 'compose_write_to_file':
compose.c:5782:5: error: format not a string literal and no format
arguments [-Werror=format-security]
alertpanel_error(msg);
^
cc1: some warnings being treated as errors
Makefile:1430: recipe for target 'compose.o' failed
make[6]: *** [compose.o] Error 1
diff --git a/src/compose.c b/src/compose.c
index 149eae9..4a6b5c0 100644
--- a/src/compose.c
+++ b/src/compose.c
@@ -5777,10 +5777,8 @@ static gint compose_write_to_file(Compose *compose, FILE *fp, gint action, gbool
if (!privacy_encrypt(compose->privacy_system, mimemsg, compose->encdata)) {
debug_print("Couldn't encrypt mime structure: %s.\n",
privacy_get_error());
- msg = g_strdup_printf("Couldn't encrypt the email: %s",
+ alertpanel_error(_("Couldn't encrypt the email: %s"),
privacy_get_error());
- alertpanel_error(msg);
- g_free(msg);
}
}
}
-----------------------------------------------------------------------
hooks/post-receive
--
Claws Mail
More information about the Commits
mailing list