termux-packages/packages/aapt/libziparchive-zip_writer.cc.patch

12 lines
381 B
Diff
Raw Normal View History

2022-02-05 06:17:26 +01:00
--- a/core/libziparchive/zip_writer.cc
+++ b/core/libziparchive/zip_writer.cc
2022-02-06 13:20:18 +01:00
@@ -389,7 +389,7 @@
2022-02-05 06:17:26 +01:00
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) {