From 5273e9fca2841dc0d8fa47574a8ab0ba036be8c2 Mon Sep 17 00:00:00 2001 From: hyung-hwan Date: Wed, 30 Nov 2022 01:33:40 +0900 Subject: [PATCH] untar resetting the block length to 0 after use --- lib/tar.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/tar.c b/lib/tar.c index 8d42053..d6d1bea 100644 --- a/lib/tar.c +++ b/lib/tar.c @@ -322,6 +322,7 @@ printf ("file size = %u [%s]\n", (unsigned int)tar->hi.filesize, hdr->name); } done: + tar->blk.len = 0; /* consumed the block */ return 0; } @@ -350,6 +351,7 @@ printf("process_content...\n"); } } + tar->blk.len = 0; /* consumed the block */ return 0; }