wok view busybox/stuff/busybox-1.18-cksum.u @ rev 9225
busybox: fix cksum applet
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Mar 11 18:53:09 2011 +0100 (2011-03-11) |
parents | |
children |
line source
1 --- busybox-1.18.0/coreutils/cksum.c
2 +++ busybox-1.18.0/coreutils/cksum.c
3 @@ -38,6 +38,7 @@
5 #define read_buf bb_common_bufsiz1
6 while ((bytes_read = safe_read(fd, read_buf, sizeof(read_buf))) > 0) {
7 + length += bytes_read;
8 crc = crc32_block_endian1(crc, read_buf, bytes_read, crc32_table);
9 }
10 close(fd);