[packages/libnemesi] - added format patch (fixes build with -Werror=format-security)

qboosh qboosh at pld-linux.org
Sun Feb 17 14:26:16 CET 2013


commit e3eeefb5006eb79a7ed02f8407166a0e8788e9ac
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sun Feb 17 14:26:20 2013 +0100

    - added format patch (fixes build with -Werror=format-security)

 libnemesi-format.patch | 15 +++++++++++++++
 libnemesi.spec         |  2 ++
 2 files changed, 17 insertions(+)
---
diff --git a/libnemesi.spec b/libnemesi.spec
index 6f2b406..3ff3463 100644
--- a/libnemesi.spec
+++ b/libnemesi.spec
@@ -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}
diff --git a/libnemesi-format.patch b/libnemesi-format.patch
new file mode 100644
index 0000000..5894117
--- /dev/null
+++ b/libnemesi-format.patch
@@ -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);
+     }
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/libnemesi.git/commitdiff/e3eeefb5006eb79a7ed02f8407166a0e8788e9ac



More information about the pld-cvs-commit mailing list