List Archive


Thread Index


From: Thomas Klausner <>
To: Andreas Falkenhahn <>
Subject: Re: Zip file comments
Date: Mon, 6 Nov 2017 22:25:36 +0100

On Mon, Nov 06, 2017 at 06:40:01PM +0100, Andreas Falkenhahn wrote:
> Why do functions like zip_set_archive_comment() require me to specify
> the length of the comment instead of just using a null terminated
> string? Can comments include null characters or what is the reason
> for having a separate length parameter?

The file format specifies a comment length and has no restrictions on
comment contents.

Made by MHonArc.