summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xmkdiskimage.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/mkdiskimage.in b/mkdiskimage.in
index c3034da2..edcb5006 100755
--- a/mkdiskimage.in
+++ b/mkdiskimage.in
@@ -82,7 +82,7 @@ if ( $c == 0 ) {
$is_open = 1;
if ( (@filestat = stat(OUTPUT)) && S_ISREG($filestat[2]) ) {
- $len = $filestat[7];
+ $len = $filestat[7] >> 9;
} elsif ( $is_linux && S_ISBLK($filestat[2]) ) {
$blksize = pack("L!", 0);
if ( ioctl(OUTPUT, $BLKGETSIZE, $blksize) == 0 ) {