* src/cksum.c (crc_sum_stream): On sparc64 for example,
a crc of 0 was printed due to mismatch in size of
variable copied between generator and output functions.
uint_fast32_t is generally 64 bits on 64 bit systems,
so we copy through an int to ensure we don't use the wrong
end of a 64 bit variable.
Reported by Nelson H. F. Beebe
crc = (crc << 8) ^ crctab[0][((crc >> 24) ^ total_bytes) & 0xFF];
crc = ~crc & 0xFFFFFFFF;
- memcpy (resstream, &crc, sizeof crc);
+ unsigned int crc_out = crc;
+ memcpy (resstream, &crc_out, sizeof crc_out);
return 0;
}