commit db92a295e87a97dce8b18cab227de7d9d3c53d0d
parent 7010555df8579ff34568314b803db766c8982983
Author: Nibo <kroekerrobin@gmail.com>
Date: Sat, 24 Jun 2023 15:07:24 +0200
Fix little formatting issue with printf
Diffstat:
1 file changed, 3 insertions(+), 5 deletions(-)
diff --git a/dinoco.c b/dinoco.c
@@ -612,11 +612,9 @@ void printAnswers
printf(ANSI_COLOR_GREEN"%-*s\t%s\n"ANSI_COLOR_RESET, longestMailDomain, "Mail Exchange", "Preference");
for (int i=0; i<answerCount; i++)
{
- printf(
- "%s\t%d\n",
- answers[i]->mx->mailDomain,
- answers[i]->mx->preference
- );
+ printf("%-*s\t", longestMailDomain, answers[i]->mx->mailDomain);
+ printf("%d", answers[i]->mx->preference);
+ printf("\n");
}
for (int i=0; i<answerCount; i++)
{