Changeset 3621 in MondoRescue for branches/3.3/mindi-busybox/coreutils/cksum.c


Ignore:
Timestamp:
Dec 20, 2016, 4:07:32 PM (7 years ago)
Author:
Bruno Cornec
Message:

New 3?3 banch for incorporation of latest busybox 1.25. Changing minor version to handle potential incompatibilities.

Location:
branches/3.3
Files:
1 edited
1 copied

Legend:

Unmodified
Added
Removed
  • branches/3.3/mindi-busybox/coreutils/cksum.c

    r3232 r3621  
    1414
    1515#include "libbb.h"
     16#include "common_bufsiz.h"
    1617
    1718/* This is a NOEXEC applet. Be very careful! */
     
    3334#endif
    3435
     36    setup_common_bufsiz();
    3537    do {
    3638        int fd = open_or_warn_stdin(*argv ? *argv : bb_msg_standard_input);
     
    4446
    4547#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) {
    4749            length += bytes_read;
    4850            crc = crc32_block_endian1(crc, read_buf, bytes_read, crc32_table);
Note: See TracChangeset for help on using the changeset viewer.