summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2011-06-15 16:16:08 +0200
committerDan McGee <dan@archlinux.org>2011-06-15 16:16:08 +0200
commit5f404f2cb78f48ddd90be0334fa2528961b17871 (patch)
treeda1f688fb432828547874e51160fddc288f2cd57 /src
parente92083798cdd98961e0d2befe25af7a8f96c9ab5 (diff)
parent6eee3f6781b62f3a80697fbc7e3eeac0544e49e8 (diff)
downloadpacman-5f404f2cb78f48ddd90be0334fa2528961b17871.tar.gz
pacman-5f404f2cb78f48ddd90be0334fa2528961b17871.tar.xz
Merge branch 'maint'
Diffstat (limited to 'src')
-rw-r--r--src/pacman/util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pacman/util.c b/src/pacman/util.c
index 2a7b3773..5d666e21 100644
--- a/src/pacman/util.c
+++ b/src/pacman/util.c
@@ -583,7 +583,7 @@ void list_display(const char *title, const alpm_list_t *list)
const char *str = alpm_list_getdata(list);
printf("%s", str);
cols += string_length(str);
- for(i = alpm_list_next(list), cols = len; i; i = alpm_list_next(i)) {
+ for(i = alpm_list_next(list); i; i = alpm_list_next(i)) {
const char *str = alpm_list_getdata(i);
int s = string_length(str);
/* wrap only if we have enough usable column space */