Skip to content

Commit

Permalink
Windows: Update libzip to version 1.5.1
Browse files Browse the repository at this point in the history
  • Loading branch information
idrassi committed Dec 2, 2018
1 parent e4e017a commit 0856b38
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
11 changes: 11 additions & 0 deletions src/Common/libzip/NEWS.md
@@ -1,3 +1,14 @@
1.5.1 [2018-04-11]
==================

* Choose format of installed documentation based on available tools.
* Fix visibility of symbols.
* Fix zipcmp directory support.
* Don't set RPATH on Linux.
* Use Libs.private for link dependencies in pkg-config file.
* Fix build with LibreSSL.
* Various bugfixes.

1.5.0 [2018-03-11]
==================

Expand Down
2 changes: 1 addition & 1 deletion src/Common/libzip/zip_dirent.c
Expand Up @@ -536,7 +536,7 @@ _zip_dirent_read(zip_dirent_t *zde, zip_source_t *src, zip_buffer_t *buffer, boo
if (zde->offset == ZIP_UINT32_MAX)
zde->offset = _zip_buffer_get_64(ef_buffer);
if (zde->disk_number == ZIP_UINT16_MAX)
zde->disk_number = _zip_buffer_get_32(buffer);
zde->disk_number = _zip_buffer_get_32(ef_buffer);
}

if (!_zip_buffer_eof(ef_buffer)) {
Expand Down
2 changes: 1 addition & 1 deletion src/Common/libzip/zip_source_buffer.c
Expand Up @@ -562,7 +562,7 @@ buffer_write(buffer_t *buffer, const zip_uint8_t *data, zip_uint64_t length, zip

memcpy(buffer->fragments[i].data + fragment_offset, data + n, left);

if (n == buffer->fragments[i].length - fragment_offset) {
if (left == buffer->fragments[i].length - fragment_offset) {
i++;
}
n += left;
Expand Down

0 comments on commit 0856b38

Please sign in to comment.