List Archive

Thread

Thread Index

Message

From: Thomas Klausner <tk%giga.or.at@localhost>
To: Lisa Matias <lisa.matias%gmail.com@localhost>
Subject: Re: ZIP_CREATE flag for zip_fdopen issues
Date: Sun, 8 Jan 2017 21:17:09 +0100

Hi Lisa!

Please use more of the example in-memory.c.

You missed more than half of it.

Put the zip_file_add calls into the modify_archive function (or the
place where it's called).

Replace get_data with a function that allocates a big enough buffer.

Replace use_data with the code that checks for zero, and later, when
you see it's working, with the code that writes the data to the file
descriptor.

Then you should be fine.

Cheers,
 Thomas

Made by MHonArc.