[med-svn] [aghermann] 31/31: heed a -Wformat-security

andrei zavada hmmr-guest at alioth.debian.org
Sun Nov 10 00:34:20 UTC 2013


This is an automated email from the git hooks/post-receive script.

hmmr-guest pushed a commit to branch WIP
in repository aghermann.

commit 150b5c0230517c2cedabb4dadaef18aaf2d21e42
Author: Andrei Zavada <hmmr at ra>
Date:   Sun Nov 10 02:24:43 2013 +0200

    heed a -Wformat-security
---
 upstream/src/aghermann/Makefile.am       |    2 +-
 upstream/src/aghermann/ui/mw/populate.cc |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/upstream/src/aghermann/Makefile.am b/upstream/src/aghermann/Makefile.am
index dbfce26..3ff0fa1 100644
--- a/upstream/src/aghermann/Makefile.am
+++ b/upstream/src/aghermann/Makefile.am
@@ -1,5 +1,5 @@
 AM_CXXFLAGS := \
-	-Wall -Wdeprecated-declarations -std=c++0x -fno-rtti \
+	-Wall -Werror=format-security -Wdeprecated-declarations -std=c++0x -fno-rtti \
 	$(GTK_CFLAGS) $(VTE_CFLAGS) $(CAIRO_CFLAGS) $(LIBCONFIGXX_CFLAGS) $(UNIQUE_CFLAGS) \
 	$(OPENMP_CXXFLAGS) \
 	$(LUA_INCLUDE) \
diff --git a/upstream/src/aghermann/ui/mw/populate.cc b/upstream/src/aghermann/ui/mw/populate.cc
index c5b94f2..d7638aa 100644
--- a/upstream/src/aghermann/ui/mw/populate.cc
+++ b/upstream/src/aghermann/ui/mw/populate.cc
@@ -453,7 +453,7 @@ populate_1()
                 string t {asctime( localtime(&earliest_start))};
                 t += asctime( localtime(&latest_end));
                 t.pop_back();
-                APPLOG_INFO (t.c_str());
+                APPLOG_INFO ("%s", t.c_str());
         }
 
         tl_left_margin = tl_right_margin = 0;

-- 
Alioth's /git/debian-med/git-commit-notice on /srv/git.debian.org/git/debian-med/aghermann.git



More information about the debian-med-commit mailing list