c44831b
From 61d08deaa4ac71102057c17df2b1ee44ebafec02 Mon Sep 17 00:00:00 2001
c44831b
From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar@redhat.com>
c44831b
Date: Tue, 10 Jun 2014 07:31:52 +0200
c44831b
Subject: [PATCH] Fix GCC format-security warning
c44831b
MIME-Version: 1.0
c44831b
Content-Type: text/plain; charset=UTF-8
c44831b
Content-Transfer-Encoding: 8bit
c44831b
c44831b
RT#96352
c44831b
c44831b
Signed-off-by: Petr Písař <ppisar@redhat.com>
c44831b
---
c44831b
 libiptc.xs | 4 ++--
c44831b
 1 file changed, 2 insertions(+), 2 deletions(-)
c44831b
c44831b
diff --git a/libiptc.xs b/libiptc.xs
c44831b
index 313f746..ad36496 100644
c44831b
--- a/libiptc.xs
c44831b
+++ b/libiptc.xs
c44831b
@@ -313,7 +313,7 @@ list_rules_IPs(self, type, chain)
c44831b
 	    /* Parse what type was requested */
c44831b
 	    if      (strcasecmp(type, "dst") == 0) the_type = 'd';
c44831b
 	    else if (strcasecmp(type, "src") == 0) the_type = 's';
c44831b
-	    else croak(errmsg);
c44831b
+	    else croak("%s", errmsg);
c44831b
 
c44831b
 	    while(entry) {
c44831b
 		count++;
c44831b
@@ -331,7 +331,7 @@ list_rules_IPs(self, type, chain)
c44831b
 			sv = newSVpv(buf, 0);
c44831b
 		        break;
c44831b
 		    default:
c44831b
-		        croak(errmsg);
c44831b
+		        croak("%s", errmsg);
c44831b
 		    }
c44831b
 		    XPUSHs(sv_2mortal(sv));
c44831b
 		}
c44831b
-- 
c44831b
1.9.3
c44831b