From 851eb26596691f470dbebb552f1bc1f8dd38218f Mon Sep 17 00:00:00 2001 From: Juan RP Date: Mon, 16 Dec 2013 07:45:51 +0100 Subject: [PATCH] xbps_repo_open: fix f7b4587 and really pass the correct size this time. --- lib/repo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/repo.c b/lib/repo.c index 22434c65..25507956 100644 --- a/lib/repo.c +++ b/lib/repo.c @@ -78,7 +78,7 @@ repo_get_dict(struct xbps_repo *repo) if (adata == NULL) { adata = malloc(size); } else { - adata = realloc(adata, size * offset); + adata = realloc(adata, size+offset); if (adata == NULL) { free(adata); return NULL;