diff options
author | Martin Langhoff <martin@laptop.org> | 2010-11-04 21:17:29 (GMT) |
---|---|---|
committer | Martin Langhoff <martin@laptop.org> | 2010-11-04 21:17:29 (GMT) |
commit | 9fbe7c4eec5d4af034e0d234867f755baaa91e4c (patch) | |
tree | bb888342646916ecf047633ad853a67bc288f1bf | |
parent | 34660b0c9ddc93d8d0466365a0f936f3441ca2d5 (diff) |
Make bzipreader more tolerant
It sometimes goes fatal() on valid files. Warn only.
-rw-r--r-- | woip/c/bzipreader.c | 3 |
1 files changed, 2 insertions, 1 deletions
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--; |