From: Eric Bollengier Date: Sun, 23 Jan 2011 16:23:13 +0000 (+0100) Subject: Change accurate CurFile allocation size X-Git-Tag: Release-7.0.0~1218 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=5da36c6016565df5a8d5ecb8f34931bda83f1ac0;p=bacula%2Fbacula Change accurate CurFile allocation size The given length counts already the 3 \0 --- diff --git a/bacula/src/filed/accurate.c b/bacula/src/filed/accurate.c index 9883bf24ef..a0fddc579b 100644 --- a/bacula/src/filed/accurate.c +++ b/bacula/src/filed/accurate.c @@ -207,8 +207,7 @@ static bool accurate_add_file(JCR *jcr, uint32_t len, CurFile *item; /* we store CurFile, fname and ctime/mtime in the same chunk */ - /* TODO: see if len contains already the 3 \0 */ - item = (CurFile *)jcr->file_list->hash_malloc(sizeof(CurFile)+len+3); + item = (CurFile *)jcr->file_list->hash_malloc(sizeof(CurFile)+len); item->seen = 0; /* TODO: see if we can optimize this part with memcpy instead of strcpy */