From: Eric Bollengier Date: Sun, 23 Jan 2011 16:23:13 +0000 (+0100) Subject: Change accurate CurFile allocation size X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=e5a7ed24c6ca1f54ae7564d3395c3b4b8a68c5ba;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 */