]> git.pld-linux.org Git - packages/echat.git/commitdiff
Add patch to fix build with -Werror=format-security master
authorMarcin Banasiak <marcin.banasiak@gmail.com>
Wed, 30 Jan 2013 11:26:41 +0000 (12:26 +0100)
committerMarcin Banasiak <marcin.banasiak@gmail.com>
Wed, 30 Jan 2013 11:26:41 +0000 (12:26 +0100)
echat-format-security.patch [new file with mode: 0644]
echat.spec

diff --git a/echat-format-security.patch b/echat-format-security.patch
new file mode 100644 (file)
index 0000000..1bf8c97
--- /dev/null
@@ -0,0 +1,12 @@
+diff -urN echat-0.04beta1/chat_parm.c echat-0.04beta1.new/chat_parm.c
+--- echat-0.04beta1/chat_parm.c        2003-08-20 07:04:17.000000000 +0200
++++ echat-0.04beta1.new/chat_parm.c    2013-01-30 12:24:39.341755575 +0100
+@@ -57,7 +57,7 @@
+     strncat(message, "-DSHELL ", STR_SIZE);
+ #endif  /* SHELL */
+     strncat(message, "\n", STR_SIZE);
+-    fprintf(stdout, message);
++    fprintf(stdout, "%s", message);
+ }
+ void parm_getopt(int argc, char *argv[]) {
index 3a593f3e33cafa4145ef9acce2f27a8bc171195a..3f69fd538c81d5aa6b05a8cd5569936cba230601 100644 (file)
@@ -10,6 +10,7 @@ Source0:      http://deep.perm.ru/files/echat/%{name}-%{version}.tar.gz
 Patch0:                %{name}-keys.patch
 Patch1:                %{name}-plcharset.patch
 Patch2:                %{name}-so_reuseport.patch
+Patch3:                %{name}-format-security.patch
 URL:           http://deep.perm.ru/echat/
 BuildRequires: ncurses-devel >= 5.1
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -25,6 +26,7 @@ Ograniczony klon Vypress Chat.
 %patch0 -p1
 %patch1 -p1
 %patch2 -p1
+%patch3 -p1
 
 %build
 %{__make} \
This page took 0.085648 seconds and 4 git commands to generate.