Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Langhoff <martin@laptop.org>2010-11-04 21:17:29 (GMT)
committer Martin Langhoff <martin@laptop.org>2010-11-04 21:17:29 (GMT)
commit9fbe7c4eec5d4af034e0d234867f755baaa91e4c (patch)
treebb888342646916ecf047633ad853a67bc288f1bf
parent34660b0c9ddc93d8d0466365a0f936f3441ca2d5 (diff)
Make bzipreader more tolerant
It sometimes goes fatal() on valid files. Warn only.
-rw-r--r--woip/c/bzipreader.c3
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--;