diff options
| author | codicodi <rob.ceglinski@gmail.com> | 2017-01-05 21:22:32 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-01-05 21:22:32 +0100 |
| commit | f99d143dc3e7cf9b07120256d2801da59653b486 (patch) | |
| tree | e4daa42173f0e876d2712230f443ecab08fe73da /ports/libarchive/use-memset-not-bzero.patch | |
| parent | b280f57002044036c1c3c9a446c06e8e0a34fb00 (diff) | |
| download | vcpkg-f99d143dc3e7cf9b07120256d2801da59653b486.tar.gz vcpkg-f99d143dc3e7cf9b07120256d2801da59653b486.zip | |
add libarchive
Diffstat (limited to 'ports/libarchive/use-memset-not-bzero.patch')
| -rw-r--r-- | ports/libarchive/use-memset-not-bzero.patch | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/ports/libarchive/use-memset-not-bzero.patch b/ports/libarchive/use-memset-not-bzero.patch new file mode 100644 index 000000000..d28ab7409 --- /dev/null +++ b/ports/libarchive/use-memset-not-bzero.patch @@ -0,0 +1,26 @@ +diff --git a/libarchive/archive_write_add_filter_xz.c b/libarchive/archive_write_add_filter_xz.c +index 46a6c38..b0f25a6 100644 +--- a/libarchive/archive_write_add_filter_xz.c ++++ b/libarchive/archive_write_add_filter_xz.c +@@ -233,7 +233,7 @@ archive_compressor_xz_init_stream(struct archive_write_filter *f, + if (f->code == ARCHIVE_FILTER_XZ) { + #ifdef HAVE_LZMA_STREAM_ENCODER_MT + if (data->threads != 1) { +- bzero(&mt_options, sizeof(mt_options)); ++ memset(&mt_options, 0, sizeof(mt_options)); + mt_options.threads = data->threads; + mt_options.timeout = 300; + mt_options.filters = data->lzmafilters; +diff --git a/libarchive/archive_write_set_format_xar.c b/libarchive/archive_write_set_format_xar.c +index a2dbc03..15a013c 100644 +--- a/libarchive/archive_write_set_format_xar.c ++++ b/libarchive/archive_write_set_format_xar.c +@@ -2913,7 +2913,7 @@ compression_init_encoder_xz(struct archive *a, + *strm = lzma_init_data; + #ifdef HAVE_LZMA_STREAM_ENCODER_MT + if (threads > 1) { +- bzero(&mt_options, sizeof(mt_options)); ++ memset(&mt_options, 0, sizeof(mt_options)); + mt_options.threads = threads; + mt_options.timeout = 300; + mt_options.filters = lzmafilters; |
