aboutsummaryrefslogtreecommitdiffstats
path: root/URPM.xs
diff options
context:
space:
mode:
Diffstat (limited to 'URPM.xs')
-rw-r--r--URPM.xs2
1 files changed, 1 insertions, 1 deletions
diff --git a/URPM.xs b/URPM.xs
index f4fb646..3edee4e 100644
--- a/URPM.xs
+++ b/URPM.xs
@@ -2692,7 +2692,7 @@ Trans_add(trans, pkg, ...)
#ifdef RPM_446
relocations = calloc(j + 1, sizeof(*relocations));
#else
- relocations = calloc(2 + av_len(excludepath), sizeof(rpmRelocation));
+ relocations = calloc(j + 1, sizeof(rpmRelocation));
#endif
while (--j >= 0) {
SV **e = av_fetch(excludepath, j, 0);