File 0003-Add-format-string-security-error-checking-to-build.patch of Package kerneloops

From 123638012f8ed8061f29cd2fa9c8de5e5ea1c33a Mon Sep 17 00:00:00 2001
From: Kees Cook <kees.cook@canonical.com>
Date: Fri, 19 Sep 2008 12:21:46 -0700
Subject: [PATCH] Add format string security error checking to build

Signed-off-by: Kees Cook <kees.cook@canonical.com>
---
 Makefile |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/Makefile b/Makefile
index 86acdf2..09a5e86 100644
--- a/Makefile
+++ b/Makefile
@@ -10,7 +10,7 @@ LOCALESDIR=/usr/share/locale
 MANDIR=/usr/share/man/man8
 CC?=gcc
 
-CFLAGS := -O2 -g -fstack-protector -D_FORTIFY_SOURCE=2 -Wall -W -Wstrict-prototypes -Wundef -fno-common -Werror-implicit-function-declaration -Wdeclaration-after-statement
+CFLAGS := -O2 -g -fstack-protector -D_FORTIFY_SOURCE=2 -Wall -W -Wstrict-prototypes -Wundef -fno-common -Werror-implicit-function-declaration -Wdeclaration-after-statement -Wformat -Wformat-security -Werror=format-security
 
 MY_CFLAGS := `pkg-config --cflags libnotify gtk+-2.0`
 #
-- 
1.5.6