wok-current diff 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 diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/busybox/stuff/busybox-1.18-cksum.u	Fri Mar 11 18:53:09 2011 +0100
     1.3 @@ -0,0 +1,10 @@
     1.4 +--- busybox-1.18.0/coreutils/cksum.c
     1.5 ++++ busybox-1.18.0/coreutils/cksum.c
     1.6 +@@ -38,6 +38,7 @@
     1.7 + 
     1.8 + #define read_buf bb_common_bufsiz1
     1.9 + 		while ((bytes_read = safe_read(fd, read_buf, sizeof(read_buf))) > 0) {
    1.10 ++			length += bytes_read;
    1.11 + 			crc = crc32_block_endian1(crc, read_buf, bytes_read, crc32_table);
    1.12 + 		}
    1.13 + 		close(fd);