xbps_repo_open: fix f7b4587 and really pass the correct size this time.

This commit is contained in:
Juan RP 2013-12-16 07:45:51 +01:00
parent f7b4587e11
commit 851eb26596

View File

@ -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;