X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=lib%2Fbuckettool.c;h=76b8fc37c21f5586074490981ecee352eefbf23a;hb=e828732528e0ed88973dd18f2dee97a42c0b4e59;hp=2b4ff592f226c47fc93f91f6e4546d64712a63ad;hpb=b43635d10f884732f466de394596b31d3779ea7c;p=libucw.git diff --git a/lib/buckettool.c b/lib/buckettool.c index 2b4ff592..76b8fc37 100644 --- a/lib/buckettool.c +++ b/lib/buckettool.c @@ -201,6 +201,11 @@ insert(byte *arg) bputl(b, lizard_filled #if 0 //TEST error resilience: write wrong length +1 +#endif + ); + bputl(b, adler32(lizard_buf.ptr, lizard_filled) +#if 0 //TEST error resilience: write wrong checksum + +1 #endif ); uns want_len = lizard_filled * LIZARD_MAX_MULTIPLY + LIZARD_MAX_ADD; @@ -249,6 +254,7 @@ cat(void) } else dump_parsed_bucket(out, &h, b); + bputc(out, '\n'); } bclose(out); obuck_cleanup();