[packages/dvbstream] - updated to 0.8.2 - added patch to fix format-security error

kiesiu kiesiu at pld-linux.org
Fri May 3 19:02:23 CEST 2013


commit d8b641a9385901f8ef50888f18338930702f9c67
Author: Łukasz Kieś <kiesiu at pld-linux.org>
Date:   Fri May 3 19:01:35 2013 +0200

    - updated to 0.8.2
    - added patch to fix format-security error

 dvbstream.spec        | 14 ++++++++------
 format-security.patch | 12 ++++++++++++
 2 files changed, 20 insertions(+), 6 deletions(-)
---
diff --git a/dvbstream.spec b/dvbstream.spec
index bb3c316..38106dd 100644
--- a/dvbstream.spec
+++ b/dvbstream.spec
@@ -1,27 +1,29 @@
 Summary:	MPEG-2 streaming over LAN
 Name:		dvbstream
-Version:	0.8
+Version:	0.8.2
 Release:	1
 License:	GPL v2+
 Group:		Networking
 Source0:	http://www.orcas.net/dvbstream/%{name}-%{version}.tar.bz2
-# Source0-md5:	09b1eba583c8b0ba5d04bf5cd2dd58a0
+# Source0-md5:	7d5fcc3b3ac8089eae1bc28c87ce290c
+Patch0:		format-security.patch
 URL:		http://www.orcas.net/dvbstream/
 BuildRequires:	ncurses-devel
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
 This package can be used to broadcast program or transport stream
-(entire or up to 8 PIDs) over LAN using the RTP protocol.
-Even though this is enhanced version of original program, there are
-newer projects based on dvbstream, like mumudvb.
+(entire or up to 8 PIDs) over LAN using the RTP protocol. Even though
+this is enhanced version of original program, there are newer projects
+based on dvbstream, like mumudvb.
 
 %prep
 %setup -q -n %{name}
+%patch0 -p1
 
 %build
 %{__make} \
-	CFLAGS="%{rpmcflags} -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -I%{_includedir}/ncurses"
+	CFLAGS="%{rpmcflags} -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -I/usr/include/ncurses"
 
 %install
 rm -rf $RPM_BUILD_ROOT
diff --git a/format-security.patch b/format-security.patch
new file mode 100644
index 0000000..7091808
--- /dev/null
+++ b/format-security.patch
@@ -0,0 +1,12 @@
+diff -uNr dvbstream.old/dvbstream.c dvbstream/dvbstream.c
+--- dvbstream.old/dvbstream.c	2012-12-28 00:27:02.000000000 +0100
++++ dvbstream/dvbstream.c	2013-05-03 18:59:50.265518063 +0200
+@@ -1685,7 +1685,7 @@
+ 							struct MESSAGE *pMessageLoop = pLocalMessages;
+ 							if (pLocalMessages != NULL) {
+ 								while (pMessageLoop != NULL) {
+-									wprintw(pMainWindow, pMessageLoop->szMessage);
++									wprintw(pMainWindow, "%s", pMessageLoop->szMessage);
+ 									//wrefresh(pMainWindow);
+ 									struct MESSAGE *pFree = pMessageLoop;
+ 									pMessageLoop = pMessageLoop->pNext;
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/dvbstream.git/commitdiff/d8b641a9385901f8ef50888f18338930702f9c67



More information about the pld-cvs-commit mailing list