index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Allan McRae <allan@archlinux.org> | 2012-08-11 23:43:43 +1000 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2012-09-18 08:38:45 -0500 |
commit | 8f5ee729747937f52c2cc199a7498629ab6c9a7d (patch) | |
tree | a6db19186ef44199f64b780359333d7c6d8fe81e /src | |
parent | 7262f4bed455eee1a9341aabb08110e6c8f6db28 (diff) |
-rw-r--r-- | src/pacman/util.c | 2 |
diff --git a/src/pacman/util.c b/src/pacman/util.c index 5079b4ce..5ed450ec 100644 --- a/src/pacman/util.c +++ b/src/pacman/util.c @@ -304,7 +304,7 @@ void indentprint(const char *str, unsigned short indent, unsigned short cols) while(q < next) { len += wcwidth(*q++); } - if(len > (cols - cidx - 1)) { + if((len + 1) > (cols - cidx)) { /* wrap to a newline and reindent */ printf("\n%-*s", (int)indent, ""); cidx = indent; |