]> git.pld-linux.org Git - packages/libnemesi.git/commitdiff
- added format patch (fixes build with -Werror=format-security) auto/th/libnemesi-0.7.0-0.20101208.1
authorJakub Bogusz <qboosh@pld-linux.org>
Sun, 17 Feb 2013 13:26:20 +0000 (14:26 +0100)
committerJakub Bogusz <qboosh@pld-linux.org>
Sun, 17 Feb 2013 13:26:20 +0000 (14:26 +0100)
libnemesi-format.patch [new file with mode: 0644]
libnemesi.spec

diff --git a/libnemesi-format.patch b/libnemesi-format.patch
new file mode 100644 (file)
index 0000000..5894117
--- /dev/null
@@ -0,0 +1,15 @@
+--- libnemesi/src/rtsp/rtsp_send.c.orig        2013-02-16 19:54:26.000000000 +0100
++++ libnemesi/src/rtsp/rtsp_send.c     2013-02-17 13:04:04.448030306 +0100
+@@ -41,10 +41,10 @@
+                         const char *content_base, const char *pathname)
+ {
+     if (!pathname || *pathname == 0 || *pathname == '*') {
+-        snprintf(str, size, content_base);
++        snprintf(str, size, "%s", content_base);
+     } else if (!content_base || *content_base == 0 ||
+                strstr(pathname,"://") != NULL) {
+-        snprintf(str, size, pathname);
++        snprintf(str, size, "%s", pathname);
+     } else {
+         snprintf(str, size, "%s/%s", content_base, pathname);
+     }
index 6f2b40624e8fe34338117443dc9170e72101a2ac..3ff346338ade51d34595d83230b78477db1096be 100644 (file)
@@ -13,6 +13,7 @@ Group:                Libraries
 # git clone git://git.lscube.org/libnemesi
 Source0:       %{name}.tar.xz
 # Source0-md5: 1ba1385440e44dde3009a285ae1164aa
+Patch0:                %{name}-format.patch
 URL:           http://lscube.org/projects/libnemesi_rtsp_rtp_client_library
 BuildRequires: autoconf >= 2.61
 BuildRequires: automake
@@ -76,6 +77,7 @@ Statyczna biblioteka libNeMeSi.
 
 %prep
 %setup -q -n %{name}
+%patch0 -p1
 
 %build
 %{__libtoolize}
This page took 0.09553 seconds and 4 git commands to generate.