482
482
state->blklen = EC16(block_hdr.cbData);
488
483
state->outlen = EC16(block_hdr.cbUncomp);
495
485
if(cli_readn(fd, state->block, state->blklen) != state->blklen) {
496
486
cli_dbgmsg("cab_read_block: Can't read block data\n");
497
487
return CL_EFORMAT; /* most likely a corrupted file */