0
0
mirror of https://github.com/termux/termux-packages.git synced 2024-12-12 14:13:36 +00:00
termux-packages/packages/aapt/libziparchive-zip_writer.cc.patch
2022-02-08 10:26:57 +09:00

12 lines
371 B
Diff

--- a/libziparchive/zip_writer.cc
+++ b/libziparchive/zip_writer.cc
@@ -389,7 +389,7 @@
CHECK(z_stream_->avail_out != 0);
// Prepare the input.
- z_stream_->next_in = reinterpret_cast<const uint8_t*>(data);
+ z_stream_->next_in = const_cast<uint8_t*>(reinterpret_cast<const uint8_t*>(data));
z_stream_->avail_in = len;
while (z_stream_->avail_in > 0) {