[packages/gpm] - fix format-string warning - rel 16
baggins
baggins at pld-linux.org
Wed Dec 12 13:47:05 CET 2012
commit 13c227bea6e46ea2be76cc9eed1fde46c2e6dc7c
Author: Jan Rękorajski <baggins at pld-linux.org>
Date: Wed Dec 12 13:46:41 2012 +0100
- fix format-string warning
- rel 16
format-string.patch | 11 +++++++++++
gpm.spec | 4 +++-
2 files changed, 14 insertions(+), 1 deletion(-)
---
diff --git a/gpm.spec b/gpm.spec
index 04fe2eb..95f02df 100644
--- a/gpm.spec
+++ b/gpm.spec
@@ -17,7 +17,7 @@ Summary(tr.UTF-8): Genel amaçlı fare desteği
Summary(uk.UTF-8): Сервер роботи з мишою для консолі Linux
Name: gpm
Version: 1.20.6
-Release: 15
+Release: 16
Epoch: 1
License: GPL v2+
Group: Daemons
@@ -36,6 +36,7 @@ Patch3: %{name}-nodebug.patch
Patch4: %{name}-dont_display_stupid_error_messages.patch
Patch5: %{name}-ncursesw.patch
Patch6: close-fds.patch
+Patch7: format-string.patch
URL: http://linux.schottelius.org/gpm/
BuildRequires: autoconf
BuildRequires: automake
@@ -251,6 +252,7 @@ Opis zadania Upstart dla gpm.
%patch4 -p1
%patch5 -p1
%patch6 -p1
+%patch7 -p1
sed -i -e 's#/usr##' doc/manpager
diff --git a/format-string.patch b/format-string.patch
new file mode 100644
index 0000000..76f4734
--- /dev/null
+++ b/format-string.patch
@@ -0,0 +1,11 @@
+--- gpm-1.20.6/src/lib/report-lib.c~ 2012-12-12 13:45:18.744097221 +0100
++++ gpm-1.20.6/src/lib/report-lib.c 2012-12-12 13:45:49.834096126 +0100
+@@ -47,7 +47,7 @@
+ log_level = LOG_CRIT; break;
+ }
+ #ifdef HAVE_VSYSLOG
+- syslog(log_level, string);
++ syslog(log_level, "%s", string);
+ vsyslog(log_level, text, ap);
+ #else
+ fprintf(stderr,"%s[%s(%d)]:\n",string,file,line);
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/gpm.git/commitdiff/13c227bea6e46ea2be76cc9eed1fde46c2e6dc7c
More information about the pld-cvs-commit
mailing list