24 Oct
2013
24 Oct
'13
1:22 p.m.
Signed-off-by: Andrew Gregory <andrew.gregory.8@gmail.com> --- src/pacman/callback.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pacman/callback.c b/src/pacman/callback.c index d0b7c40..36531a2 100644 --- a/src/pacman/callback.c +++ b/src/pacman/callback.c @@ -632,7 +632,7 @@ void cb_dl_progress(const char *filename, off_t file_xfered, off_t file_total) } /* bogus values : stop here */ - if(xfered > total) { + if(xfered > total || xfered < 0) { return; } -- 1.8.4.1