From 4fabb8ff177c1b39da94d5253a4add9eb43b4c78 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Wed, 29 Nov 2006 22:23:29 +0000 Subject: (Trans_add) adjust allocated memory --- URPM.xs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.1