]> git.pld-linux.org Git - packages/bakefile.git/commitdiff
- fix format string warning auto/th/bakefile-0.2.9-2
authorJan Rękorajski <baggins@pld-linux.org>
Wed, 12 Dec 2012 11:32:13 +0000 (12:32 +0100)
committerJan Rękorajski <baggins@pld-linux.org>
Wed, 12 Dec 2012 11:32:13 +0000 (12:32 +0100)
- rel 2

bakefile.spec
format-security.patch [new file with mode: 0644]

index ba1ded0cbc84ece3a275ea1ea5b1eecad1d2a7db..ab0a3f0dbd461272481a4d3d445c1bd40c7c0b67 100644 (file)
@@ -2,12 +2,13 @@ Summary:      Native makefiles generator
 Summary(pl.UTF-8):     Generator natywnych plików typu Makefile
 Name:          bakefile
 Version:       0.2.9
-Release:       1
+Release:       2
 License:       MIT
 Group:         Development/Building
 Source0:       http://downloads.sourceforge.net/bakefile/%{name}-%{version}.tar.gz
 # Source0-md5: b53813d155df1a45371abc8f781e6d88
 Patch0:                %{name}-empy.patch
+Patch1:                format-security.patch
 URL:           http://bakefile.sourceforge.net/
 BuildRequires: autoconf >= 2.53
 BuildRequires: automake >= 1.6
@@ -34,6 +35,7 @@ dla autoconfa, projekt dla Visual C++, makefile dla bcc itd.).
 %prep
 %setup -q
 %patch0 -p1
+%patch1 -p1
 
 %build
 %{__libtoolize}
diff --git a/format-security.patch b/format-security.patch
new file mode 100644 (file)
index 0000000..9060d77
--- /dev/null
@@ -0,0 +1,11 @@
+--- bakefile-0.2.9/src/bkl_c_wrap.c~   2011-02-02 16:21:57.000000000 +0100
++++ bakefile-0.2.9/src/bkl_c_wrap.c    2012-12-12 12:30:12.717316507 +0100
+@@ -850,7 +850,7 @@
+     Py_DECREF(old_str);
+     Py_DECREF(value);
+   } else {
+-    PyErr_Format(PyExc_RuntimeError, mesg);
++    PyErr_Format(PyExc_RuntimeError, "%s", mesg);
+   }
+ }
This page took 0.096632 seconds and 4 git commands to generate.