summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2023-11-11 01:59:22 +0100
committerCarl Hetherington <cth@carlh.net>2023-11-11 01:59:22 +0100
commit504fded3b686a3186416cd62f4b7fa8ce7fb4932 (patch)
treeaa7eea15aa2b0408e7baa35bed676106cb1eab26 /src/lib
parent7ad9dd774ec811707fa0edaa3867f5caa3c7c6ca (diff)
Replace deprecated zip_add() with zip_file_add().
Diffstat (limited to 'src/lib')
-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)));
}
}