From 9fbe7c4eec5d4af034e0d234867f755baaa91e4c Mon Sep 17 00:00:00 2001 From: Martin Langhoff Date: Thu, 04 Nov 2010 21:17:29 +0000 Subject: Make bzipreader more tolerant It sometimes goes fatal() on valid files. Warn only. --- diff --git a/woip/c/bzipreader.c b/woip/c/bzipreader.c index ea468de..ca66d05 100644 --- a/woip/c/bzipreader.c +++ b/woip/c/bzipreader.c @@ -160,7 +160,8 @@ int computeBoundariesUpto(FILE *inFile, int32_t upto) { if(b == BIT_EOF) { if(bitsRead >= bStart[currBlock] && (bitsRead - bStart[currBlock]) >= 40) { - fatal("Corrupted file"); /* I'm not actually certain that this is necessarily the case */ + fprintf(stderr, "Corrupted file?\n"); + /* fatal("Corrupted file"); I'm not actually certain that this is necessarily the case */ } else currBlock--; -- cgit v0.9.1