diff options
author | hans <hans@pkgsrc.org> | 2012-01-11 19:01:48 +0000 |
---|---|---|
committer | hans <hans@pkgsrc.org> | 2012-01-11 19:01:48 +0000 |
commit | 3fa3e2ccf0337cb703fc7fb210b737ab390595c6 (patch) | |
tree | 8fd0845826efd2d9c2056fe75e1a85c62c5a906f /audio | |
parent | f3ae05411880c87b2cd70d2bd13514eff49898e7 (diff) | |
download | pkgsrc-3fa3e2ccf0337cb703fc7fb210b737ab390595c6.tar.gz |
Don't jump over variable initialization.
Diffstat (limited to 'audio')
-rw-r--r-- | audio/milkytracker/distinfo | 3 | ||||
-rw-r--r-- | audio/milkytracker/patches/patch-src_compression_zziplib_generic_fseeko.cpp | 23 |
2 files changed, 25 insertions, 1 deletions
diff --git a/audio/milkytracker/distinfo b/audio/milkytracker/distinfo index 53ad59ec5c7..91a1749eb48 100644 --- a/audio/milkytracker/distinfo +++ b/audio/milkytracker/distinfo @@ -1,6 +1,7 @@ -$NetBSD: distinfo,v 1.1.1.1 2009/08/27 22:50:16 ahoka Exp $ +$NetBSD: distinfo,v 1.2 2012/01/11 19:01:48 hans Exp $ SHA1 (milkytracker-0.90.80.tar.bz2) = e6adedee56a6a1bf096b5311c319954ea54977dc RMD160 (milkytracker-0.90.80.tar.bz2) = cb535a50c29b8d722617007054921065e71c1615 Size (milkytracker-0.90.80.tar.bz2) = 1799270 bytes SHA1 (patch-aa) = 8e0a8d58c54995483f639b7f2d936b0b1ffd1a8f +SHA1 (patch-src_compression_zziplib_generic_fseeko.cpp) = df4f1672986c774775acc8c35b67fa43470d4bab diff --git a/audio/milkytracker/patches/patch-src_compression_zziplib_generic_fseeko.cpp b/audio/milkytracker/patches/patch-src_compression_zziplib_generic_fseeko.cpp new file mode 100644 index 00000000000..0ee6ca6ce25 --- /dev/null +++ b/audio/milkytracker/patches/patch-src_compression_zziplib_generic_fseeko.cpp @@ -0,0 +1,23 @@ +$NetBSD: patch-src_compression_zziplib_generic_fseeko.cpp,v 1.1 2012/01/11 19:01:48 hans Exp $ + +Don't jump over variable initialization. + +--- src/compression/zziplib/generic/fseeko.cpp.orig 2008-01-05 18:33:45.000000000 +0100 ++++ src/compression/zziplib/generic/fseeko.cpp 2011-12-30 16:11:43.327510421 +0100 +@@ -445,6 +445,7 @@ struct zzip_entry_file /* : zzip_file_he + zzip__new__ ZZIP_ENTRY_FILE* + zzip_entry_fopen (ZZIP_ENTRY* entry, int takeover) + { ++ ___ zzip_off_t seek; + if (! entry) return 0; + if (! takeover) { + ZZIP_ENTRY* found = (ZZIP_ENTRY*)malloc (sizeof(*entry)); +@@ -472,7 +473,7 @@ zzip_entry_fopen (ZZIP_ENTRY* entry, int + file->zlib.zalloc = Z_NULL; + file->zlib.zfree = Z_NULL; + +- ___ zzip_off_t seek = file->data; ++ seek = file->data; + seek += sizeof(file->buffer); seek -= seek & (sizeof(file->buffer)-1); + assert (file->data < seek); /* pre-read to next PAGESIZE boundary... */ + fseeko (file->entry->diskfile, file->data + file->dataoff, SEEK_SET); |