diff options
author | B. Watson <urchlay@slackware.uk> | 2024-04-30 03:00:11 -0400 |
---|---|---|
committer | B. Watson <urchlay@slackware.uk> | 2024-04-30 03:00:11 -0400 |
commit | 3c4599d7202d685ab24935d1348ad9ab167fce02 (patch) | |
tree | 928461888b5b27f54bf314621538b045d9b2416c /xexamine.c | |
parent | ca5b5bda7477386f6050c1a65802c5a68dc2de55 (diff) | |
download | bw-atari8-tools-3c4599d7202d685ab24935d1348ad9ab167fce02.tar.gz |
xex.c: detect short reads.
Diffstat (limited to 'xexamine.c')
-rw-r--r-- | xexamine.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -358,6 +358,11 @@ int main(int argc, char **argv) { while(xex_fread_seg(&seg, f)) { segcount++; + xex_check_seg(&seg); + if(xex_errno) { + xex_perror(filename); + } + crc = 0; crc32(seg.object, seg.len, &crc); |