VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/Common/libzip/zip_source_buffer.c
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2018-12-03 00:45:10 +0100
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2018-12-03 00:51:49 +0100
commit0856b387f1f9f631a7b98202ce9fdcff22499d85 (patch)
tree952966c2fe2b1e2034f0b31742b2f8334e9a631c /src/Common/libzip/zip_source_buffer.c
parente4e017a2ad317f685a00c479ec0a73cc93ae74f3 (diff)
downloadVeraCrypt-0856b387f1f9f631a7b98202ce9fdcff22499d85.tar.gz
VeraCrypt-0856b387f1f9f631a7b98202ce9fdcff22499d85.zip
Windows: Update libzip to version 1.5.1
Diffstat (limited to 'src/Common/libzip/zip_source_buffer.c')
-rw-r--r--src/Common/libzip/zip_source_buffer.c2
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;