From: Carl Hetherington Date: Sat, 11 Nov 2023 00:59:22 +0000 (+0100) Subject: Replace deprecated zip_add() with zip_file_add(). X-Git-Tag: v2.16.67~24 X-Git-Url: https://git.carlh.net/gitweb/?a=commitdiff_plain;h=8b38ce5ff42a35c2dfc1f160369c098a496c0e1a;p=dcpomatic.git Replace deprecated zip_add() with zip_file_add(). --- 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))); } }