index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Dan McGee <dan@archlinux.org> | 2011-10-03 10:54:08 -0500 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2011-10-13 20:59:16 -0500 |
commit | 8605284e0d1b70d9845ca4c6362d7d451f503d32 (patch) | |
tree | 91068c025f1b0c38d14a13132208dddf2b5aee1e /src/pacman/util.c | |
parent | 9934052b54fd4dcd2339a2beb87ccc81b5e144bd (diff) |
-rw-r--r-- | src/pacman/util.c | 8 |
diff --git a/src/pacman/util.c b/src/pacman/util.c index 278b65c1..2696451e 100644 --- a/src/pacman/util.c +++ b/src/pacman/util.c @@ -266,7 +266,7 @@ void indentprint(const char *str, size_t indent) /* if we're not a tty, or our tty is not wide enough that wrapping even makes * sense, print without indenting */ if(cols == 0 || indent > cols) { - printf("%s", str); + fputs(str, stdout); return; } @@ -623,7 +623,7 @@ void list_display(const char *title, const alpm_list_t *list) const unsigned short maxcols = getcols(); size_t cols = len; const char *str = list->data; - printf("%s", str); + fputs(str, stdout); cols += string_length(str); for(i = alpm_list_next(list); i; i = alpm_list_next(i)) { str = i->data; @@ -641,10 +641,10 @@ void list_display(const char *title, const alpm_list_t *list) printf(" "); cols += 2; } - printf("%s", str); + fputs(str, stdout); cols += s; } - printf("\n"); + putchar('\n'); } } |