summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2023-11-11 01:59:22 +0100
committerCarl Hetherington <cth@carlh.net>2023-11-12 22:11:27 +0100
commit8b38ce5ff42a35c2dfc1f160369c098a496c0e1a (patch)
treed0c9bac8e3a270a873c2d620dd6507db493ed9f3
parentdfa7b94e802b05bba4243381460eef96626102a0 (diff)
Replace deprecated zip_add() with zip_file_add().
-rw-r--r--src/lib/zipper.cc2
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)));
}
}