From 5bfc7e45ac4e9227ce3d560075eb8e37fefa197f Mon Sep 17 00:00:00 2001 From: apio Date: Sun, 5 Feb 2023 14:14:37 +0100 Subject: [PATCH] chore: Adjust comment in minitar_write_file_entry() --- src/tar.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tar.c b/src/tar.c index ed01004..4999f04 100644 --- a/src/tar.c +++ b/src/tar.c @@ -120,7 +120,7 @@ int minitar_write_file_entry(struct minitar_w* mp, const struct minitar_entry_me char zeroes[512]; memset(zeroes, 0, sizeof(zeroes)); - // Write as many zeroes as necessary to finish a block. + // Pad with zeroes to finish a block (512 bytes). size_t nzero = minitar_align_up_to_block_size(meta.size) - meta.size; nwrite = fwrite(zeroes, 1, nzero, mp->stream); if (nwrite == 0 && ferror(mp->stream)) return -1;