diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2011-03-13 02:39:10 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2011-03-13 02:39:10 +0100 |
commit | 30f0ea6cab956ed59ecc5de82459187763a2b868 (patch) | |
tree | 2f93977a3de79ff6b517b2a291b643502267ccc9 /coreutils/cksum.c | |
parent | 92e531458a6c0e6464fbdc1463f91edc7fb752c7 (diff) | |
download | busybox-w32-1_18_4.tar.gz busybox-w32-1_18_4.tar.bz2 busybox-w32-1_18_4.zip |
Apply post-1.18.3 fixes, bump version to 1.18.41_18_4
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to '')
-rw-r--r-- | coreutils/cksum.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/coreutils/cksum.c b/coreutils/cksum.c index 7a37e6add..53fb87a78 100644 --- a/coreutils/cksum.c +++ b/coreutils/cksum.c | |||
@@ -38,6 +38,7 @@ int cksum_main(int argc UNUSED_PARAM, char **argv) | |||
38 | 38 | ||
39 | #define read_buf bb_common_bufsiz1 | 39 | #define read_buf bb_common_bufsiz1 |
40 | while ((bytes_read = safe_read(fd, read_buf, sizeof(read_buf))) > 0) { | 40 | while ((bytes_read = safe_read(fd, read_buf, sizeof(read_buf))) > 0) { |
41 | length += bytes_read; | ||
41 | crc = crc32_block_endian1(crc, read_buf, bytes_read, crc32_table); | 42 | crc = crc32_block_endian1(crc, read_buf, bytes_read, crc32_table); |
42 | } | 43 | } |
43 | close(fd); | 44 | close(fd); |