]> git.pld-linux.org Git - packages/ctags.git/commitdiff
- fix format string warning auto/th/ctags-5.8-3
authorJan Rękorajski <baggins@pld-linux.org>
Wed, 12 Dec 2012 11:48:52 +0000 (12:48 +0100)
committerJan Rękorajski <baggins@pld-linux.org>
Wed, 12 Dec 2012 11:48:52 +0000 (12:48 +0100)
- rel 3

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

index 36733fdde62c503abe7c55ec5aa45c815e53252d..c84a717ce82ea85b06113aa63952b055e673fde0 100644 (file)
@@ -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 (file)
index 0000000..4597207
--- /dev/null
@@ -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 ();
This page took 0.105788 seconds and 4 git commands to generate.