* util/grub-mkimage.c (main): Fix format-security warning.

* util/grub-mkrelpath.c (main): Likewise.
	* util/grub-probe.c (main): Likewise.
This commit is contained in:
Richard Laager 2012-02-03 11:07:18 +01:00 committed by Vladimir 'phcoder' Serbinenko
parent 65f08dbfe0
commit 69edd81ab7
4 changed files with 9 additions and 3 deletions

View file

@ -1,3 +1,9 @@
2012-02-03 Richard Laager <rlaager@wiktel.com>
* util/grub-mkimage.c (main): Fix format-security warning.
* util/grub-mkrelpath.c (main): Likewise.
* util/grub-probe.c (main): Likewise.
2012-02-03 Richard Laager <rlaager@wiktel.com>
* util/grub-probe.c (probe): Don't crash on canonicalize_file_name

View file

@ -1821,7 +1821,7 @@ main (int argc, char *argv[])
if (!image_target)
{
printf (_("Target format not specified (use the -O option).\n"));
printf ("%s", _("Target format not specified (use the -O option).\n"));
usage (1);
}

View file

@ -89,7 +89,7 @@ main (int argc, char *argv[])
if (optind >= argc)
{
fprintf (stderr, _("No path is specified.\n"));
fprintf (stderr, "%s", _("No path is specified.\n"));
usage (1);
}

View file

@ -798,7 +798,7 @@ main (int argc, char *argv[])
/* Obtain ARGUMENT. */
if (optind >= argc)
{
fprintf (stderr, _("No path or device is specified.\n"));
fprintf (stderr, "%s", _("No path or device is specified.\n"));
usage (1);
}