diff options
Diffstat (limited to 'xexamine.c')
-rw-r--r-- | xexamine.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -358,11 +358,6 @@ 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); @@ -391,6 +386,11 @@ int main(int argc, char **argv) { offset = ftell(f); } + if(xex_errno) { + fprintf(stderr, SELF ": %s: %s\n", + filename, xex_strerror(xex_errno)); + } + if(only_segment && (segcount < only_segment)) { fprintf(stderr, SELF ": can't show segment %d, only %d segments in file.\n", only_segment, segcount); return 1; |