forked from pool/busybox
124ada3f00
OBS-URL: https://build.opensuse.org/request/show/64020 OBS-URL: https://build.opensuse.org/package/show/Base:System/busybox?expand=0&rev=12
11 lines
367 B
Diff
11 lines
367 B
Diff
--- busybox-1.18.3/coreutils/cksum.c
|
|
+++ busybox-1.18.3-cksum/coreutils/cksum.c
|
|
@@ -38,6 +38,7 @@ int cksum_main(int argc UNUSED_PARAM, ch
|
|
|
|
#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);
|