]> git.pld-linux.org Git - packages/libvisual.git/commitdiff
- fix format string errors
authorJan Rękorajski <baggins@pld-linux.org>
Tue, 30 Dec 2014 17:13:40 +0000 (17:13 +0000)
committerJan Rękorajski <baggins@pld-linux.org>
Tue, 30 Dec 2014 17:13:40 +0000 (17:13 +0000)
format-security.patch [new file with mode: 0644]
libvisual.spec

diff --git a/format-security.patch b/format-security.patch
new file mode 100644 (file)
index 0000000..fdc45a2
--- /dev/null
@@ -0,0 +1,16 @@
+--- libvisual-0.4.0/libvisual/lv_plugin.c~     2006-03-04 12:32:47.000000000 +0000
++++ libvisual-0.4.0/libvisual/lv_plugin.c      2014-12-30 17:12:18.029038873 +0000
+@@ -442,11 +442,11 @@
+                               
+                               visual_list_add (list, ref);
+                       } else if (ret != FALSE) {
+-                              visual_log (VISUAL_LOG_WARNING, visual_error_to_string (ret));
++                              visual_log (VISUAL_LOG_WARNING, "%s", visual_error_to_string (ret));
+                       }
+               }
+               else if (ret != FALSE) { /* FIXME XXX TODO, patch frmo duilio check how this works */
+-                      visual_log (VISUAL_LOG_WARNING, visual_error_to_string (ret));
++                      visual_log (VISUAL_LOG_WARNING, "%s", visual_error_to_string (ret));
+               }
+       }
index d06015adeaefc0352ade0b32c7a61b63b0a99d9d..4b89079575b7f5da365473c32ee9c87bf617929e 100644 (file)
@@ -9,6 +9,7 @@ Source0:        http://downloads.sourceforge.net/libvisual/%{name}-%{version}.tar.bz2
 # Source0-md5: d0f987abd0845e725743605fd39ef73f
 Patch0:                %{name}-link.patch
 Patch1:                %{name}-NULL.patch
+Patch2:                format-security.patch
 # original URL is defunct; use sf
 #URL:          http://localhost.nl/~synap/libvisual/
 URL:           http://libvisual.sourceforge.net/
@@ -57,6 +58,7 @@ Statyczna biblioteka libvisual.
 %setup -q
 %patch0 -p1
 %patch1 -p1
+%patch2 -p1
 
 mv -f po/{es_ES,es}.po
 # es_AR is a copy of es
This page took 0.189103 seconds and 4 git commands to generate.