summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/install.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/install.c b/lib/install.c
index 2c138f1ac..df2b0a62c 100644
--- a/lib/install.c
+++ b/lib/install.c
@@ -270,7 +270,7 @@ static int assembleFileList(Header h, struct fileMemory * mem,
} while (rc > 0 && nextReloc);
if (!rc) {
- newName = alloca(newLen + strlen(mem->names[i]));
+ newName = alloca(newLen + strlen(mem->names[i]) + 1);
strcpy(newName, nextReloc->newPath);
strcat(newName, mem->names[i] + len);
rpmMessage(RPMMESS_DEBUG, _("relocating %s to %s\n"),