From b4f5a63e7fee5d04949e290bd63e5f0e94bd211e Mon Sep 17 00:00:00 2001 From: Dave Reisner Date: Mon, 13 Feb 2012 10:59:26 -0500 Subject: lib/sync: use full delta size as max download size The max filesize for a delta download must be the full size of the delta file, not just what's remaining. Fixes FS#28345 Signed-off-by: Dave Reisner Signed-off-by: Dan McGee --- lib/libalpm/sync.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/libalpm/sync.c') diff --git a/lib/libalpm/sync.c b/lib/libalpm/sync.c index cf209717..a946a7df 100644 --- a/lib/libalpm/sync.c +++ b/lib/libalpm/sync.c @@ -845,7 +845,7 @@ static int download_files(alpm_handle_t *handle, alpm_list_t **deltas) CALLOC(dpayload, 1, sizeof(*dpayload), RET_ERR(handle, ALPM_ERR_MEMORY, -1)); STRDUP(dpayload->remote_name, delta->delta, RET_ERR(handle, ALPM_ERR_MEMORY, -1)); - dpayload->max_size = delta->download_size; + dpayload->max_size = delta->delta_size; files = alpm_list_add(files, dpayload); } -- cgit v1.2.3-24-g4f1b