diff options
Diffstat (limited to 'coreutils/od_bloaty.c')
-rw-r--r-- | coreutils/od_bloaty.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/coreutils/od_bloaty.c b/coreutils/od_bloaty.c index 7a6f22b03..ee4f72ca1 100644 --- a/coreutils/od_bloaty.c +++ b/coreutils/od_bloaty.c | |||
@@ -1028,12 +1028,12 @@ dump(off_t current_offset, off_t end_offset) | |||
1028 | l_c_m = get_lcm(); | 1028 | l_c_m = get_lcm(); |
1029 | 1029 | ||
1030 | /* Make bytes_to_write the smallest multiple of l_c_m that | 1030 | /* Make bytes_to_write the smallest multiple of l_c_m that |
1031 | is at least as large as n_bytes_read. */ | 1031 | is at least as large as n_bytes_read. */ |
1032 | bytes_to_write = l_c_m * ((n_bytes_read + l_c_m - 1) / l_c_m); | 1032 | bytes_to_write = l_c_m * ((n_bytes_read + l_c_m - 1) / l_c_m); |
1033 | 1033 | ||
1034 | memset(block[idx] + n_bytes_read, 0, bytes_to_write - n_bytes_read); | 1034 | memset(block[idx] + n_bytes_read, 0, bytes_to_write - n_bytes_read); |
1035 | write_block(current_offset, bytes_to_write, | 1035 | write_block(current_offset, bytes_to_write, |
1036 | block[idx ^ 1], block[idx]); | 1036 | block[idx ^ 1], block[idx]); |
1037 | current_offset += n_bytes_read; | 1037 | current_offset += n_bytes_read; |
1038 | } | 1038 | } |
1039 | 1039 | ||