The following patch from Mandriva, fixes building Merkaartor 0.14 with the
-Werror=format-security CFLAG, which is used by default in Mandriva.
diff -ur merkaartor-0.14.orig/src/Main.cpp merkaartor-0.14/src/Main.cpp
--- merkaartor-0.14.orig/src/Main.cpp 2009-07-26 19:46:51.000000000 +0200
+++ merkaartor-0.14/src/Main.cpp 2009-08-13 22:55:50.000000000 +0200
@@ -71,9 +71,9 @@
{
QString o;
o = QString("Merkaartor
%1%2\n").arg(STRINGIFY(VERSION)).arg(STRINGIFY(REVISION));
- fprintf(stdout, o.toLatin1());
+ fprintf(stdout, "%s", o.toLatin1());
o = QString("using QT version %1 (built with
%2)\n").arg(qVersion()).arg(QT_VERSION_STR);
- fprintf(stdout, o.toLatin1());
+ fprintf(stdout, "%s", o.toLatin1());
fprintf(stdout, "Copyright Bart Vanhauwaert, Chris Browet and others,
2006-2009\n");
fprintf(stdout, "This program is licensed under the GNU Public License
v2\n");
}
--
Frederik Himpe
_______________________________________________
Merkaartor mailing list
[email protected]
http://lists.openstreetmap.org/listinfo/merkaartor