summaryrefslogtreecommitdiff
path: root/extra/flac
diff options
context:
space:
mode:
authorNicolás Reynolds <fauno@endefensadelsl.org>2014-06-27 03:56:37 +0000
committerNicolás Reynolds <fauno@endefensadelsl.org>2014-06-27 03:56:37 +0000
commit2676c8b3a08c1af42cabaa11ac68985ef635eca3 (patch)
treee04aef3931197d9020ca26e75c3f8f62e666041c /extra/flac
parent76b667b6360f6f7e97f13392cf156f197dc4017b (diff)
Fri Jun 27 03:52:25 UTC 2014
Diffstat (limited to 'extra/flac')
-rw-r--r--extra/flac/PKGBUILD14
-rw-r--r--extra/flac/flac-realloc.patch15
2 files changed, 25 insertions, 4 deletions
diff --git a/extra/flac/PKGBUILD b/extra/flac/PKGBUILD
index 71b5347df..7a5737e9b 100644
--- a/extra/flac/PKGBUILD
+++ b/extra/flac/PKGBUILD
@@ -1,18 +1,24 @@
-# $Id: PKGBUILD 213052 2014-05-18 04:34:11Z eric $
+# $Id: PKGBUILD 215465 2014-06-26 00:20:23Z eric $
# Maintainer: Eric Bélanger <eric@archlinux.org>
pkgbase=flac
pkgname=('flac' 'flac-doc')
pkgver=1.3.0
-pkgrel=2
+pkgrel=3
arch=('i686' 'x86_64')
url="http://flac.sourceforge.net/"
license=('BSD' 'GPL')
depends=('gcc-libs' 'libogg')
makedepends=('nasm' 'doxygen')
options=('!makeflags')
-source=(http://downloads.xiph.org/releases/flac/${pkgbase}-${pkgver}.tar.xz)
-sha1sums=('a136e5748f8fb1e6c524c75000a765fc63bb7b1b')
+source=(http://downloads.xiph.org/releases/flac/${pkgbase}-${pkgver}.tar.xz flac-realloc.patch)
+sha1sums=('a136e5748f8fb1e6c524c75000a765fc63bb7b1b'
+ '22bf08219c289d747f399e351c701d0f195d3ce0')
+
+prepare() {
+ cd ${pkgbase}-${pkgver}
+ patch -p1 -i "${srcdir}/flac-realloc.patch"
+}
build() {
cd ${pkgbase}-${pkgver}
diff --git a/extra/flac/flac-realloc.patch b/extra/flac/flac-realloc.patch
new file mode 100644
index 000000000..cf1a212cf
--- /dev/null
+++ b/extra/flac/flac-realloc.patch
@@ -0,0 +1,15 @@
+X-Git-Url: http://git.xiph.org/?p=flac.git;a=blobdiff_plain;f=src%2Fmetaflac%2Futils.c;h=8a31daaddd47f8ea2d7b1e66445d180b4151e0db;hp=097537b2d39ea302269a16e7da9bc413e02ffb6e;hb=606fdfcaece19d3e05434bde57c289102a369069;hpb=d42c04260bf9e27cbb8c61a5529ecab3b20e25ff
+
+diff --git a/src/metaflac/utils.c b/src/metaflac/utils.c
+index 097537b..8a31daa 100644
+--- a/src/metaflac/utils.c
++++ b/src/metaflac/utils.c
+@@ -75,7 +75,7 @@ void local_strcat(char **dest, const char *source)
+ *dest = safe_realloc_add_3op_(*dest, ndest, /*+*/nsource, /*+*/1);
+ if(0 == *dest)
+ die("out of memory growing string");
+- safe_strncpy((*dest)+ndest, source, ndest + nsource + 1);
++ safe_strncpy((*dest)+ndest, source, nsource + 1);
+ }
+
+ static inline int local_isprint(int c)