]> git.sur5r.net Git - bacula/bacula/commitdiff
Revert to 5.0 size computation in accurate elements, may fix #1821
authorEric Bollengier <eric@baculasystems.com>
Wed, 18 Jan 2012 09:31:32 +0000 (10:31 +0100)
committerKern Sibbald <kern@sibbald.com>
Sat, 20 Apr 2013 12:50:28 +0000 (14:50 +0200)
bacula/src/filed/accurate.c

index 8bdc7a6c515cf8d9bbf6cb174f25136090488511..6a2c9e67385f723141f4f828a6e8188916e30b20 100644 (file)
@@ -215,7 +215,7 @@ static bool accurate_add_file(JCR *jcr, uint32_t len,
    /* we store CurFile, fname and ctime/mtime in the same chunk 
     * we need one extra byte to handle an empty chksum
     */
-   item = (CurFile *)jcr->file_list->hash_malloc(sizeof(CurFile)+len+1);
+   item = (CurFile *)jcr->file_list->hash_malloc(sizeof(CurFile)+len+3);
    item->seen = 0;
 
    /* TODO: see if we can optimize this part with memcpy instead of strcpy */