[packages/ctags] - fix format string warning - rel 3
baggins
baggins at pld-linux.org
Wed Dec 12 12:49:09 CET 2012
commit bdd802d1586c52d1c652725755b1904293ec7d45
Author: Jan Rękorajski <baggins at pld-linux.org>
Date: Wed Dec 12 12:48:52 2012 +0100
- fix format string warning
- rel 3
ctags.spec | 4 +++-
format-security.patch | 11 +++++++++++
2 files changed, 14 insertions(+), 1 deletion(-)
---
diff --git a/ctags.spec b/ctags.spec
index 36733fd..c84a717 100644
--- a/ctags.spec
+++ b/ctags.spec
@@ -10,11 +10,12 @@ Summary(tr.UTF-8): C dili için çapraz-başvuru (cross-reference) aracı
Summary(uk.UTF-8): Утиліта для індексації та побудови посилань для мови C
Name: ctags
Version: 5.8
-Release: 2
+Release: 3
License: GPL v2+
Group: Development/Tools
Source0: http://dl.sourceforge.net/ctags/%{name}-%{version}.tar.gz
# Source0-md5: c00f82ecdcc357434731913e5b48630d
+Patch0: format-security.patch
URL: http://ctags.sourceforge.net/
BuildRequires: autoconf >= 1.12
BuildRequires: automake
@@ -129,6 +130,7 @@ Exuberant Ctags підтримує вивід файлу TAGS у стилі Emac
%prep
%setup -q
+%patch0 -p1
%build
%{__autoconf}
diff --git a/format-security.patch b/format-security.patch
new file mode 100644
index 0000000..4597207
--- /dev/null
+++ b/format-security.patch
@@ -0,0 +1,11 @@
+--- ctags-5.8/lregex.c~ 2007-09-10 04:36:48.000000000 +0200
++++ ctags-5.8/lregex.c 2012-12-12 12:48:02.020612120 +0100
+@@ -408,7 +408,7 @@
+ const char* regexfile = parameter + 1;
+ FILE* const fp = fopen (regexfile, "r");
+ if (fp == NULL)
+- error (WARNING | PERROR, regexfile);
++ error (WARNING | PERROR, "%s", regexfile);
+ else
+ {
+ vString* const regex = vStringNew ();
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/ctags.git/commitdiff/bdd802d1586c52d1c652725755b1904293ec7d45
More information about the pld-cvs-commit
mailing list