From f56ad0aafa868303ce324ae8d45675570c66b050 Mon Sep 17 00:00:00 2001 From: Mark Adler Date: Tue, 23 Jan 2024 11:59:05 -0800 Subject: Note termination of returned strings in contrib/minizip/unzip.h. --- contrib/minizip/unzip.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/contrib/minizip/unzip.h b/contrib/minizip/unzip.h index 5cfc9c6..ceb614e 100644 --- a/contrib/minizip/unzip.h +++ b/contrib/minizip/unzip.h @@ -313,6 +313,10 @@ extern int ZEXPORT unzGetCurrentFileInfo(unzFile file, This is the Central-header version of the extra field if szComment!=NULL, the comment string of the file will be copied in szComment (commentBufferSize is the size of the buffer) + The file name and comment will be zero-terminated if there is room in the + provided buffer. Otherwise the buffer will contain as much as will fit. If at + least 65537 bytes of room is provided, then the result will always be + complete and zero-terminated. */ -- cgit v1.2.3-55-g6feb