Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/src/pacman/callback.c
diff options
context:
space:
mode:
authorAllan McRae <allan@archlinux.org>2019-06-20 16:28:44 +1000
committerAllan McRae <allan@archlinux.org>2019-06-20 16:28:44 +1000
commit4ca5f5949b42f76867f11eec0a5379ed3eb531d2 (patch)
tree203b0b5b0162e9dca1d49fe455702af5b25dff52 /src/pacman/callback.c
parent1a343d378a9e0c4ea143db9e796cf7262eb0d4cb (diff)
Fix compiler warnings with gcc-9.1
Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'src/pacman/callback.c')
-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 22865614..aa5f521e 100644
--- a/src/pacman/callback.c
+++ b/src/pacman/callback.c
@@ -804,7 +804,7 @@ void cb_dl_progress(const char *filename, off_t file_xfered, off_t file_total)
int i = filenamelen - 3;
wchar_t *wcp = wcfname;
/* grab the max number of char columns we can fill */
- while(i > 0 && wcwidth(*wcp) < i) {
+ while(wcwidth(*wcp) < i) {
i -= wcwidth(*wcp);
wcp++;
}