xbps_repo_open: fix f7b4587
and really pass the correct size this time.
This commit is contained in:
parent
f7b4587e11
commit
851eb26596
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user