From a3285e235bdf8325b7a9149f0bdd33d6585ae268 Mon Sep 17 00:00:00 2001 From: Eric Bollengier Date: Mon, 5 Dec 2011 11:32:10 +0100 Subject: [PATCH] Update accurate code to use 1 byte instead of 3 --- bacula/src/filed/accurate.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bacula/src/filed/accurate.c b/bacula/src/filed/accurate.c index 3479cd5eca..1c50411ceb 100644 --- a/bacula/src/filed/accurate.c +++ b/bacula/src/filed/accurate.c @@ -213,9 +213,9 @@ static bool accurate_add_file(JCR *jcr, uint32_t len, CurFile *item; /* we store CurFile, fname and ctime/mtime in the same chunk - * we need some extra bytes to handle an empty chksum + * we need one extra byte to handle an empty chksum */ - item = (CurFile *)jcr->file_list->hash_malloc(sizeof(CurFile)+len+3); + item = (CurFile *)jcr->file_list->hash_malloc(sizeof(CurFile)+len+1); item->seen = 0; /* TODO: see if we can optimize this part with memcpy instead of strcpy */ -- 2.39.5