1
0
mirror of https://github.com/gophernicus/gophernicus.git synced 2024-11-03 04:27:17 -05:00

Tabs->spaces borked userlist on most clients

This commit is contained in:
fosslinux 2020-04-30 20:19:44 +10:00
parent 4587014a86
commit c1c7ffe721
No known key found for this signature in database
GPG Key ID: 7D7996D0C25B63A3

View File

@ -156,13 +156,13 @@ void userlist(state *st)
ltime = localtime(&users[i].mtime);
strftime(timestr, sizeof(timestr), DATE_FORMAT, ltime);
printf("1%-*.*s %s - \t/~%s/\t%s\t%i" CRLF,
width, width, buf, timestr, users[i].user,
st->server_host, st->server_port);
printf("1%-*.*s %s - \t/~%s/\t%s\t%i" CRLF,
width, width, buf, timestr, users[i].user,
st->server_host, st->server_port);
}
else {
printf("1%.*s\t/~%s/\t%s\t%i" CRLF, st->out_width, users[i].user,
pwd->pw_name, st->server_host_default, st->server_port);
printf("1%.*s\t/~%s/\t%s\t%i" CRLF, st->out_width, buf,
users[i].user, st->server_host_default, st->server_port);
}
}