mkpasswd: correctly print the available methods as columns

This commit is contained in:
Marco d'Itri 2018-10-14 01:14:09 +02:00
parent b2ae96cf3f
commit b91c9057da

View File

@ -499,7 +499,7 @@ void display_methods(void)
printf(_("Available methods:\n")); printf(_("Available methods:\n"));
for (i = 0; methods[i].method != NULL; i++) for (i = 0; methods[i].method != NULL; i++)
if (methods[i].desc) if (methods[i].desc)
printf("%s\t%s\n", methods[i].method, methods[i].desc); printf("%-15s %s\n", methods[i].method, methods[i].desc);
} }
char *read_line(FILE *fp) { char *read_line(FILE *fp) {