projects
/
platform
/
upstream
/
rpm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1d9b4d0
)
Make sure there's room for \0 (packages with no files)
author
Panu Matilainen
<pmatilai@redhat.com>
Wed, 16 Jul 2008 09:07:03 +0000
(12:07 +0300)
committer
Panu Matilainen
<pmatilai@redhat.com>
Wed, 16 Jul 2008 09:07:03 +0000
(12:07 +0300)
build/files.c
patch
|
blob
|
history
diff --git
a/build/files.c
b/build/files.c
index
8931cfb
..
e87f487
100644
(file)
--- a/
build/files.c
+++ b/
build/files.c
@@
-1188,7
+1188,7
@@
static void genCpioListAndHeader(FileList fl,
fi->bnl = _free(fi->bnl);
if (!scareMem) fi->dil = _free(fi->dil);
- fi->dnl = xmalloc(fi->fc * sizeof(*fi->dnl) + dpathlen);
+ fi->dnl = xmalloc(fi->fc * sizeof(*fi->dnl) + dpathlen
+ 1
);
d = (char *)(fi->dnl + fi->fc);
*d = '\0';