X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=bacula%2Fsrc%2Fstored%2Frecord_read.c;h=3fd1f04432940a7df46b917b5bbcb31d087630c9;hb=78d4fcb723bf780023451391c9536c6f7e9fbf00;hp=a08acbe2f75dda9cd5ae69bc0ad4cd3a74b48be2;hpb=8bb8f3c9174dfa48eaf95911e0617ae2a0529dfc;p=bacula%2Fbacula diff --git a/bacula/src/stored/record_read.c b/bacula/src/stored/record_read.c index a08acbe2f7..3fd1f04432 100644 --- a/bacula/src/stored/record_read.c +++ b/bacula/src/stored/record_read.c @@ -159,7 +159,7 @@ static bool read_header(DCR *dcr, DEV_BLOCK *block, DEV_RECORD *rec) } /* Sanity check */ - if (rec->data_bytes >= MAX_BLOCK_LENGTH) { + if (rec->data_bytes >= MAX_BLOCK_SIZE) { Dmsg0(dbgep, "=== rpath 11b maxlen too big\n"); /* * Something is wrong, force read of next block, abort @@ -168,7 +168,7 @@ static bool read_header(DCR *dcr, DEV_BLOCK *block, DEV_RECORD *rec) rec->state_bits |= (REC_NO_HEADER | REC_BLOCK_EMPTY); empty_block(block); Jmsg2(dcr->jcr, M_WARNING, 0, _("Sanity check failed. maxlen=%d datalen=%d. Block discarded.\n"), - MAX_BLOCK_LENGTH, rec->data_bytes); + MAX_BLOCK_SIZE, rec->data_bytes); return false; }