Changeset 3621 in MondoRescue for branches/3.3/mindi-busybox/coreutils/cksum.c
- Timestamp:
- Dec 20, 2016, 4:07:32 PM (7 years ago)
- Location:
- branches/3.3
- Files:
-
- 1 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
branches/3.3/mindi-busybox/coreutils/cksum.c
r3232 r3621 14 14 15 15 #include "libbb.h" 16 #include "common_bufsiz.h" 16 17 17 18 /* This is a NOEXEC applet. Be very careful! */ … … 33 34 #endif 34 35 36 setup_common_bufsiz(); 35 37 do { 36 38 int fd = open_or_warn_stdin(*argv ? *argv : bb_msg_standard_input); … … 44 46 45 47 #define read_buf bb_common_bufsiz1 46 while ((bytes_read = safe_read(fd, read_buf, sizeof(read_buf))) > 0) {48 while ((bytes_read = safe_read(fd, read_buf, COMMON_BUFSIZE)) > 0) { 47 49 length += bytes_read; 48 50 crc = crc32_block_endian1(crc, read_buf, bytes_read, crc32_table);
Note:
See TracChangeset
for help on using the changeset viewer.