summaryrefslogtreecommitdiff
path: root/lib/ext2fs/unix_io.c
diff options
context:
space:
mode:
authorTheodore Ts'o <tytso@mit.edu>2020-01-06 18:14:24 -0500
committerTheodore Ts'o <tytso@mit.edu>2020-01-06 18:14:24 -0500
commitd8b12defe0ddbc584bd1ebdab9b18488e936f16c (patch)
tree2705b1dda678ca7eec803695aee36b1946eeeebe /lib/ext2fs/unix_io.c
parent3ab6fd6627f2978cc65cc93ee67caa34d67cbfc9 (diff)
parentc2b1ec5fbc99ab8a2b71dae45d486b3ea004f618 (diff)
downloade2fsprogs-debian/1.45.5-1.tar.gz
Merge tag 'v1.45.5' into debian/masterdebian/1.45.5-1archive/debian/1.45.5-1
v1.45.5
Diffstat (limited to 'lib/ext2fs/unix_io.c')
-rw-r--r--lib/ext2fs/unix_io.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/ext2fs/unix_io.c b/lib/ext2fs/unix_io.c
index 74fc8a75..628e60c3 100644
--- a/lib/ext2fs/unix_io.c
+++ b/lib/ext2fs/unix_io.c
@@ -166,7 +166,7 @@ static errcode_t raw_read_blk(io_channel channel,
unsigned char *buf = bufv;
ssize_t really_read = 0;
- size = (count < 0) ? -count : count * channel->block_size;
+ size = (count < 0) ? -count : (ext2_loff_t) count * channel->block_size;
data->io_stats.bytes_read += size;
location = ((ext2_loff_t) block * channel->block_size) + data->offset;
@@ -275,7 +275,7 @@ static errcode_t raw_write_blk(io_channel channel,
if (count < 0)
size = -count;
else
- size = count * channel->block_size;
+ size = (ext2_loff_t) count * channel->block_size;
}
data->io_stats.bytes_written += size;