[packages/gtypist] fix format string error
draenog
draenog at pld-linux.org
Mon Jun 10 04:06:04 CEST 2013
commit 4fbc27a00258f581fd4c0c31c21b69594c16c79d
Author: Kacper Kornet <draenog at pld-linux.org>
Date: Mon Jun 10 03:04:04 2013 +0100
fix format string error
gtypist-format-error.patch | 13 +++++++++++++
gtypist.spec | 2 ++
2 files changed, 15 insertions(+)
---
diff --git a/gtypist.spec b/gtypist.spec
index 96c0543..b8085e2 100644
--- a/gtypist.spec
+++ b/gtypist.spec
@@ -14,6 +14,7 @@ Source0: http://ftp.gnu.org/gnu/gtypist/%{name}-%{version}.tar.xz
# Source0-md5: 77a5622f5290ec5cfca6ee3f66bfe792
Patch0: %{name}-info.patch
Patch1: %{name}-am.patch
+Patch2: %{name}-format-error.patch
URL: http://www.gnu.org/software/gtypist/
BuildRequires: autoconf >= 2.50
BuildRequires: automake >= 1:1.8.2
@@ -52,6 +53,7 @@ Tryb Emacsa do edycji plików .typ gtypista.
%setup -q
%patch0 -p1
%patch1 -p1
+%patch2 -p1
%{__rm} po/stamp-po
diff --git a/gtypist-format-error.patch b/gtypist-format-error.patch
new file mode 100644
index 0000000..ca54f23
--- /dev/null
+++ b/gtypist-format-error.patch
@@ -0,0 +1,13 @@
+diff --git a/src/script.c b/src/script.c
+index 34a52b0..ce04d68 100644
+--- a/src/script.c
++++ b/src/script.c
+@@ -331,7 +331,7 @@ do_exit( FILE *script )
+ }
+ else
+ {
+- printf(convertUTF8ToCurrentEncoding(_("Happy Typing!\n\n")));
++ printf("%s", convertUTF8ToCurrentEncoding(_("Happy Typing!\n\n")));
+ }
+ exit( 0 );
+ }
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/gtypist.git/commitdiff/8e769ca3cf50fe8917240858ad25faba5226c416
More information about the pld-cvs-commit
mailing list