]> git.pld-linux.org Git - packages/mp4v2.git/commitdiff
- fix -Wformat-security errors
authorJan Rękorajski <baggins@pld-linux.org>
Tue, 13 Nov 2012 13:40:42 +0000 (14:40 +0100)
committerJan Rękorajski <baggins@pld-linux.org>
Tue, 13 Nov 2012 13:40:42 +0000 (14:40 +0100)
format-security.patch [new file with mode: 0644]
mp4v2.spec

diff --git a/format-security.patch b/format-security.patch
new file mode 100644 (file)
index 0000000..68cd656
--- /dev/null
@@ -0,0 +1,22 @@
+--- mp4v2-1.9.1/src/mp4file.cpp~       2009-07-14 01:07:12.000000000 +0200
++++ mp4v2-1.9.1/src/mp4file.cpp        2012-11-13 14:19:21.505940224 +0100
+@@ -2580,7 +2580,7 @@
+     GetChapters(&chapters, &chapterCount, sourceType);
+     if (0 == chapterCount)
+     {
+-        VERBOSE_READ(GetVerbosity(), printf(errMsg));
++        VERBOSE_READ(GetVerbosity(), printf("%s", errMsg));
+         return MP4ChapterTypeNone;
+     }
+--- mp4v2-1.9.1/src/mp4property.cpp~   2009-07-14 01:07:11.000000000 +0200
++++ mp4v2-1.9.1/src/mp4property.cpp    2012-11-13 14:20:00.485938846 +0100
+@@ -619,7 +619,7 @@
+         oss << "  |" << text.str() << "|\n";
+-        fprintf( pFile, oss.str().c_str() );
++        fprintf( pFile, "%s", oss.str().c_str() );
+         fflush( pFile );
+         return;
+     }
index d554502465f314fbad7e47808ae7cc881d6fece6..cba06303e8ffe9e6084c21825a7b94b57f59671a 100644 (file)
@@ -8,6 +8,7 @@ License:        MPL v1.1
 Group:         Applications/Multimedia
 Source0:       http://mp4v2.googlecode.com/files/%{name}-%{version}.tar.bz2
 # Source0-md5: 986701929ef15b03155ac4fb16444797
+Patch0:                format-security.patch
 URL:           http://code.google.com/p/mp4v2/
 BuildRequires: libstdc++-devel
 Requires:      %{name}-libs = %{version}-%{release}
@@ -48,6 +49,7 @@ This package contains static version of MP4v2.
 
 %prep
 %setup -q
+%patch0 -p1
 
 %build
 %configure
This page took 0.069288 seconds and 4 git commands to generate.