From 15ecfc3d29d877cccd6beb6265b09d1b72e34781 Mon Sep 17 00:00:00 2001 From: Aaron Giles Date: Mon, 16 Mar 2009 16:12:10 +0000 Subject: [PATCH] Fixed bug where chdman -extract would not truncate to the logical size. --- src/tools/chdman.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/tools/chdman.c b/src/tools/chdman.c index b3a172af9dd..f7bfe1b59d6 100644 --- a/src/tools/chdman.c +++ b/src/tools/chdman.c @@ -1323,6 +1323,7 @@ static int do_extract(int argc, char *argv[], int param) err = CHDERR_WRITE_ERROR; goto cleanup; } + bytesremaining -= byteswritten; } progress(TRUE, "Extraction complete! \n");