diff options
| -rw-r--r-- | test/minigzip.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/minigzip.c b/test/minigzip.c index d5173b5..ec86e3f 100644 --- a/test/minigzip.c +++ b/test/minigzip.c | |||
| @@ -426,7 +426,7 @@ static void file_compress(char *file, char *mode) { | |||
| 426 | } | 426 | } |
| 427 | 427 | ||
| 428 | end = string_copy(outfile, file, sizeof(outfile)); | 428 | end = string_copy(outfile, file, sizeof(outfile)); |
| 429 | string_copy(end, GZ_SUFFIX, (outfile + sizeof(outfile)) - end); | 429 | string_copy(end, GZ_SUFFIX, sizeof(outfile) - (z_size_t)(end - outfile)); |
| 430 | 430 | ||
| 431 | in = fopen(file, "rb"); | 431 | in = fopen(file, "rb"); |
| 432 | if (in == NULL) { | 432 | if (in == NULL) { |
