Replace printf by puts for fixed strings. This would avoid issues caused
by formats introduced in translated strings.
This commit is contained in:
@@ -68,13 +68,13 @@ int expire (const struct passwd *pw, const struct spwd *sp)
|
||||
case 0:
|
||||
return 0;
|
||||
case 1:
|
||||
printf (_("Your password has expired."));
|
||||
puts (_("Your password has expired."));
|
||||
break;
|
||||
case 2:
|
||||
printf (_("Your password is inactive."));
|
||||
puts (_("Your password is inactive."));
|
||||
break;
|
||||
case 3:
|
||||
printf (_("Your login has expired."));
|
||||
puts (_("Your login has expired."));
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -168,8 +168,8 @@ void agecheck (const struct passwd *pw, const struct spwd *sp)
|
||||
("Your password will expire in %ld days.\n"),
|
||||
remain);
|
||||
else if (remain == 1)
|
||||
printf (_("Your password will expire tomorrow.\n"));
|
||||
puts (_("Your password will expire tomorrow.\n"));
|
||||
else if (remain == 0)
|
||||
printf (_("Your password will expire today.\n"));
|
||||
puts (_("Your password will expire today.\n"));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user