diff options
Diffstat (limited to 'src/Common/libzip/zip_source_buffer.c')
-rw-r--r-- | src/Common/libzip/zip_source_buffer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Common/libzip/zip_source_buffer.c b/src/Common/libzip/zip_source_buffer.c index 05ade4ac..d2bc8ad9 100644 --- a/src/Common/libzip/zip_source_buffer.c +++ b/src/Common/libzip/zip_source_buffer.c @@ -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; |