Adjust rpmfi directory count while messing with it in build

- otherwise we can miss some entries in rpmfiFN() max calculation and
  blow up in entertaining ways
This commit is contained in:
Panu Matilainen 2008-11-11 17:35:42 +02:00
parent d535818f42
commit f553d2f0cd
1 changed files with 1 additions and 0 deletions

View File

@ -1258,6 +1258,7 @@ static void genCpioListAndHeader(FileList fl,
fi->bnl = _free(fi->bnl);
fi->dil = _free(fi->dil);
fi->dc = fi->fc;
fi->dnl = xmalloc(fi->fc * sizeof(*fi->dnl) + dpathlen + 1);
d = (char *)(fi->dnl + fi->fc);
*d = '\0';