diff options
-rw-r--r-- | src/pacman/callback.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pacman/callback.c b/src/pacman/callback.c index 99ad716e..75c74f8b 100644 --- a/src/pacman/callback.c +++ b/src/pacman/callback.c @@ -677,7 +677,7 @@ void cb_progress(void *ctx, alpm_progress_t event, const char *pkgname, int i = textlen - 3; wchar_t *p = wcstr; /* grab the max number of char columns we can fill */ - while(i - wcwidth(*p) > 0) { + while(i > wcwidth(*p)) { i -= wcwidth(*p); p++; } |