* util/grub-editenv.c (argp_parser): Don't pass translated strings

as printf format strings; the translations might contain '%' which
could cause a crash.
(main): Likewise.
* util/grub-fstest.c (argp_parser): Likewise.
* util/grub-setup.c (argp_parser): Likewise.
(main): Likewise.
This commit is contained in:
Colin Watson 2010-09-20 17:56:14 +01:00
parent 3286a4b4c2
commit dfe3b247a2
4 changed files with 20 additions and 9 deletions

View file

@ -72,7 +72,8 @@ error_t argp_parser (int key, char *arg, struct argp_state *state)
break;
case ARGP_KEY_NO_ARGS:
fprintf (stderr, _("You need to specify at least one command.\n"));
fprintf (stderr, "%s",
_("You need to specify at least one command.\n"));
argp_usage (state);
break;
@ -272,7 +273,7 @@ main (int argc, char *argv[])
/* Parse our arguments */
if (argp_parse (&argp, argc, argv, 0, &index, 0) != 0)
{
fprintf (stderr, _("Error in parsing command line arguments\n"));
fprintf (stderr, "%s", _("Error in parsing command line arguments\n"));
exit(1);
}