mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-21 13:12:47 +08:00
14 lines
649 B
Diff
14 lines
649 B
Diff
|
diff --git a/lib/zip_source_winzip_aes_encode.c b/lib/zip_source_winzip_aes_encode.c
|
||
|
|
||
|
--- a/lib/zip_source_winzip_aes_encode.c
|
||
|
+++ b/lib/zip_source_winzip_aes_encode.c
|
||
|
@@ -163,7 +163,7 @@ winzip_aes_encrypt(zip_source_t *src, void *ud, void *data, zip_uint64_t length,
|
||
|
/* TODO: return partial read? */
|
||
|
return -1;
|
||
|
}
|
||
|
- buffer_n += _zip_buffer_read(ctx->buffer, data + ret, length - (zip_uint64_t)ret);
|
||
|
+ buffer_n += _zip_buffer_read(ctx->buffer, (zip_uint8_t *)data + ret, length - (zip_uint64_t)ret);
|
||
|
}
|
||
|
|
||
|
return (zip_int64_t)(buffer_n + (zip_uint64_t)ret);
|