Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/pacman/callback.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pacman/callback.c b/src/pacman/callback.c
index d0b7c409..36531a26 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;
}