[git commit master 1/1] chsum: fix

Denys Vlasenko vda.linux at googlemail.com
Fri Mar 11 22:40:27 UTC 2011


commit: http://git.busybox.net/busybox/commit/?id=48b6f59e19613d497148ecf1033ce75c74baa8a7
branch: http://git.busybox.net/busybox/commit/?id=refs/heads/master

Signed-off-by: Pascal Bellard <pascal.bellard at ads-lu.com>
Signed-off-by: Denys Vlasenko <vda.linux at googlemail.com>
---
 coreutils/cksum.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/coreutils/cksum.c b/coreutils/cksum.c
index 7a37e6a..53fb87a 100644
--- a/coreutils/cksum.c
+++ b/coreutils/cksum.c
@@ -38,6 +38,7 @@ int cksum_main(int argc UNUSED_PARAM, char **argv)
 
 #define read_buf bb_common_bufsiz1
 		while ((bytes_read = safe_read(fd, read_buf, sizeof(read_buf))) > 0) {
+			length += bytes_read;
 			crc = crc32_block_endian1(crc, read_buf, bytes_read, crc32_table);
 		}
 		close(fd);
-- 
1.7.3.4



More information about the busybox-cvs mailing list