Avoid conversion warning in minigzip.c.

This commit is contained in:
Mark Adler 2022-10-01 16:52:35 -07:00
parent 59b948acee
commit 2d6d59e472

View File

@ -500,7 +500,7 @@ void file_uncompress(file)
char *infile, *outfile;
FILE *out;
gzFile in;
unsigned len = strlen(file);
z_size_t len = strlen(file);
if (len + strlen(GZ_SUFFIX) >= sizeof(buf)) {
fprintf(stderr, "%s: filename too long\n", prog);