- fix format string errors auto/th/php-pecl-paradox-1.4.3-6
authorJan Rękorajski <baggins@pld-linux.org>
Wed, 29 Jan 2014 18:52:14 +0000 (19:52 +0100)
committerJan Rękorajski <baggins@pld-linux.org>
Wed, 29 Jan 2014 18:52:14 +0000 (19:52 +0100)
format-security.patch [new file with mode: 0644]
php-pecl-paradox.spec

diff --git a/format-security.patch b/format-security.patch
new file mode 100644 (file)
index 0000000..84b9001
--- /dev/null
@@ -0,0 +1,15 @@
+--- php-pecl-paradox-1.4.3/paradox.c~  2007-09-25 14:12:42.000000000 +0200
++++ php-pecl-paradox-1.4.3/paradox.c   2014-01-29 19:50:50.751991267 +0100
+@@ -176,10 +176,10 @@
+               case PX_MemoryError:
+               case PX_IOError:
+               case PX_RuntimeError:
+-                      php_error_docref(NULL TSRMLS_CC, E_ERROR, shortmsg);
++                      php_error_docref(NULL TSRMLS_CC, E_ERROR, "%s", shortmsg);
+                       break;
+               case PX_Warning:
+-                      php_error_docref(NULL TSRMLS_CC, E_WARNING, shortmsg);
++                      php_error_docref(NULL TSRMLS_CC, E_WARNING, "%s", shortmsg);
+                       break;
+       }
+ }
index 13c9b496c17e06bf20bdd461ecba0e5b3b3f8004..a56906e8e217cdd178bb92c62971cd51a920cc7c 100644 (file)
@@ -10,6 +10,7 @@ License:      PHP 3.01
 Group:         Development/Languages/PHP
 Source0:       http://pecl.php.net/get/%{modname}-%{version}.tgz
 # Source0-md5: aab0bc4146bc2852a9623b635fa20c17
+Patch0:                format-security.patch
 URL:           http://pecl.php.net/package/Paradox/
 BuildRequires: %{php_name}-devel >= 3:5.0.0
 BuildRequires: pxlib-devel >= 0.6.0
@@ -37,6 +38,7 @@ To rozszerzenie ma w PECL status: %{status}.
 %prep
 %setup -q -c
 mv %{modname}-%{version}/* .
+%patch0 -p1
 
 %build
 phpize
This page took 0.06062 seconds and 4 git commands to generate.