projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7d4e7a2
)
chsum: fix
author
Pascal Bellard
<pascal.bellard@ads-lu.com>
Fri, 11 Mar 2011 22:40:27 +0000
(23:40 +0100)
committer
Denys Vlasenko
<vda.linux@googlemail.com>
Fri, 11 Mar 2011 22:40:27 +0000
(23:40 +0100)
Signed-off-by: Pascal Bellard <pascal.bellard@ads-lu.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
coreutils/cksum.c
patch
|
blob
|
history
diff --git
a/coreutils/cksum.c
b/coreutils/cksum.c
index 7a37e6add62d569622b871c5f31b90e1175f4f74..53fb87a78c8fbee04471977aac6d8ef462feec13 100644
(file)
--- 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);