diff options
| author | Carl Hetherington <cth@carlh.net> | 2023-11-11 01:59:22 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2023-11-12 22:11:27 +0100 |
| commit | 8b38ce5ff42a35c2dfc1f160369c098a496c0e1a (patch) | |
| tree | d0c9bac8e3a270a873c2d620dd6507db493ed9f3 | |
| parent | dfa7b94e802b05bba4243381460eef96626102a0 (diff) | |
Replace deprecated zip_add() with zip_file_add().
| -rw-r--r-- | src/lib/zipper.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/zipper.cc b/src/lib/zipper.cc index e37c8aa12..db84cdf71 100644 --- a/src/lib/zipper.cc +++ b/src/lib/zipper.cc @@ -57,7 +57,7 @@ Zipper::add (string name, string content) throw runtime_error ("could not create ZIP source"); } - if (zip_add(_zip, name.c_str(), source) == -1) { + if (zip_file_add(_zip, name.c_str(), source, ZIP_FL_ENC_GUESS) == -1) { throw runtime_error(String::compose("failed to add data to ZIP archive (%1)", zip_strerror(_zip))); } } |
