Fix printstatus in ui_txt - sacc - sacc(omys), simple console gopher client HTML git clone git://bitreich.org/sacc/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/sacc/ DIR Log DIR Files DIR Refs DIR Tags DIR LICENSE --- DIR commit d733c513f8f4e7318c0a9578335f9cfb2bf63211 DIR parent c15197ca5f00c090cce31f7b497dc4b536484200 HTML Author: Quentin Rameau <quinq@fifth.space> Date: Sun, 10 Dec 2017 21:59:26 +0100 Fix printstatus in ui_txt Get the right argument number for the gopher port Thanks to Hiljto for spotting this! Diffstat: M ui_txt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- DIR diff --git a/ui_txt.c b/ui_txt.c @@ -84,7 +84,7 @@ printstatus(Item *item, char c) unsigned long long printoff = dir ? dir->printoff : 0; fmt = (strcmp(item->port, "70") && strcmp(item->port, "gopher")) ? - "%3lld%%%*c %s:%7$s/%c%s [%c]: " : "%3lld%%%*c %s/%c%s [%c]: "; + "%3lld%%%*c %s:%8$s/%c%s [%c]: " : "%3lld%%%*c %s/%c%s [%c]: "; printf(fmt, (printoff + lines-1 >= nitems) ? 100 : (printoff + lines) * 100 / nitems, ndigits(nitems)+2, '|', item->host, item->type, item->selector, c, item->port);