The attached trivial patch fixes a couple of format-security
warnings/errors (if -Werror=format-security is set, as is becoming more
popular on distros).

-- 
Richard
Index: grub/util/grub-mkimage.c
===================================================================
--- grub.orig/util/grub-mkimage.c	2012-01-31 00:31:31.409215919 -0600
+++ grub/util/grub-mkimage.c	2012-01-31 00:31:42.060047000 -0600
@@ -1821,7 +1821,7 @@
 
   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);
     }
 
Index: grub/util/grub-mkrelpath.c
===================================================================
--- grub.orig/util/grub-mkrelpath.c	2012-01-31 00:31:34.493209927 -0600
+++ grub/util/grub-mkrelpath.c	2012-01-31 00:31:49.276858000 -0600
@@ -89,7 +89,7 @@
 
   if (optind >= argc)
     {
-      fprintf (stderr, _("No path is specified.\n"));
+      fprintf (stderr, "%s", _("No path is specified.\n"));
       usage (1);
     }
 
Index: grub/util/grub-probe.c
===================================================================
--- grub.orig/util/grub-probe.c	2012-01-31 00:32:06.329166567 -0600
+++ grub/util/grub-probe.c	2012-01-31 00:32:12.627705000 -0600
@@ -746,7 +746,7 @@
   /* 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);
     }
 

Attachment: signature.asc
Description: This is a digitally signed message part

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

Reply via email to