/* "version" */
versrc = zip_source_buffer(zipfile, "2", 1, FALSE);
- if (zip_file_add(zipfile, "version", versrc, 0) < 0) {
+ if (zip_add(zipfile, "version", versrc) < 0) {
sr_err("Error saving version into zipfile: %s",
zip_strerror(zipfile));
zip_source_free(versrc);
g_key_file_free(meta);
metasrc = zip_source_buffer(zipfile, metabuf, metalen, FALSE);
- if (zip_file_add(zipfile, "metadata", metasrc, 0) < 0) {
+ if (zip_add(zipfile, "metadata", metasrc) < 0) {
sr_err("Error saving metadata into zipfile: %s",
zip_strerror(zipfile));
zip_source_free(metasrc);