Avoid conversion warning in minigzip.c.
This commit is contained in:
parent
59b948acee
commit
2d6d59e472
@ -500,7 +500,7 @@ void file_uncompress(file)
|
|||||||
char *infile, *outfile;
|
char *infile, *outfile;
|
||||||
FILE *out;
|
FILE *out;
|
||||||
gzFile in;
|
gzFile in;
|
||||||
unsigned len = strlen(file);
|
z_size_t len = strlen(file);
|
||||||
|
|
||||||
if (len + strlen(GZ_SUFFIX) >= sizeof(buf)) {
|
if (len + strlen(GZ_SUFFIX) >= sizeof(buf)) {
|
||||||
fprintf(stderr, "%s: filename too long\n", prog);
|
fprintf(stderr, "%s: filename too long\n", prog);
|
||||||
|
Loading…
Reference in New Issue
Block a user