wok-current annotate 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
rev   line source
pascal@9225 1 --- busybox-1.18.0/coreutils/cksum.c
pascal@9225 2 +++ busybox-1.18.0/coreutils/cksum.c
pascal@9225 3 @@ -38,6 +38,7 @@
pascal@9225 4
pascal@9225 5 #define read_buf bb_common_bufsiz1
pascal@9225 6 while ((bytes_read = safe_read(fd, read_buf, sizeof(read_buf))) > 0) {
pascal@9225 7 + length += bytes_read;
pascal@9225 8 crc = crc32_block_endian1(crc, read_buf, bytes_read, crc32_table);
pascal@9225 9 }
pascal@9225 10 close(fd);