aboutsummaryrefslogtreecommitdiffstats
path: root/URPM.xs
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2006-11-29 22:23:29 +0000
committerThierry Vignaud <tv@mandriva.org>2006-11-29 22:23:29 +0000
commit4fabb8ff177c1b39da94d5253a4add9eb43b4c78 (patch)
tree6334efee8f2ee7fd57f7b7059e49550e568440dc /URPM.xs
parentd971db73c3e7225560518d3421377466a29debda (diff)
downloadperl-URPM-4fabb8ff177c1b39da94d5253a4add9eb43b4c78.tar
perl-URPM-4fabb8ff177c1b39da94d5253a4add9eb43b4c78.tar.gz
perl-URPM-4fabb8ff177c1b39da94d5253a4add9eb43b4c78.tar.bz2
perl-URPM-4fabb8ff177c1b39da94d5253a4add9eb43b4c78.tar.xz
perl-URPM-4fabb8ff177c1b39da94d5253a4add9eb43b4c78.zip
(Trans_add) adjust allocated memory
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 155aa14..f4fb646 100644
--- a/URPM.xs
+++ b/URPM.xs
@@ -2690,7 +2690,7 @@ Trans_add(trans, pkg, ...)
AV *excludepath = (AV*)SvRV(ST(i+1));
I32 j = 1 + av_len(excludepath);
#ifdef RPM_446
- relocations = calloc(j + 2, sizeof(*relocations));
+ relocations = calloc(j + 1, sizeof(*relocations));
#else
relocations = calloc(2 + av_len(excludepath), sizeof(rpmRelocation));
#endif