projects
/
dcpomatic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dfa7b94
)
Replace deprecated zip_add() with zip_file_add().
author
Carl Hetherington
<cth@carlh.net>
Sat, 11 Nov 2023 00:59:22 +0000
(
01:59
+0100)
committer
Carl Hetherington
<cth@carlh.net>
Sun, 12 Nov 2023 21:11:27 +0000
(22:11 +0100)
src/lib/zipper.cc
patch
|
blob
|
history
diff --git
a/src/lib/zipper.cc
b/src/lib/zipper.cc
index e37c8aa123779f2a8da4fb0c9e5311886c00f836..db84cdf71db596062a68b6ad5a8ec06382fd337c 100644
(file)
--- 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)));
}
}