Patch: fix compilation with -Wformat-security

Jordi Mallach <[email protected]>
Newsgroups gmane.comp.gnu.mailutils.bugs
Organization Debian
Message-ID <[email protected]>
Hi Sergey,

One classic bugfix for Debian and Ubuntu builds, which use this
compiler flag by default. This appeared first in 3.3, but also applies
verbatim to 3.4.

Jordi
-- 
Jordi Mallach Pérez  --  Debian developer     http://www.debian.org/
[email protected]     [email protected]     http://www.sindominio.net/
GnuPG public key information available at http://oskuro.net/

_______________________________________________
Bug-mailutils mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-mailutils
mimeview_lexer_format-security.patch (text/x-patch, 293 B)
Index: mailutils/mimeview/lexer.l
===================================================================
--- mailutils.orig/mimeview/lexer.l
+++ mailutils/mimeview/lexer.l
@@ -277,7 +277,7 @@ mimetypes_close ()
 int
 yyerror (char *s)
 {
-  mu_error (s);
+  mu_error ("%s", s);
   return 0;
 }
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.