* [PATCH] Fix format-security compile warnings/errors
@ 2012-02-01 6:45 Richard Laager
2012-02-03 10:07 ` Vladimir 'φ-coder/phcoder' Serbinenko
0 siblings, 1 reply; 3+ messages in thread
From: Richard Laager @ 2012-02-01 6:45 UTC (permalink / raw)
To: grub-devel
[-- Attachment #1.1: Type: text/plain, Size: 173 bytes --]
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
[-- Attachment #1.2: compile-warnings.patch --]
[-- Type: text/x-patch, Size: 1409 bytes --]
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 #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-02-04 20:48 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-02-01 6:45 [PATCH] Fix format-security compile warnings/errors Richard Laager
2012-02-03 10:07 ` Vladimir 'φ-coder/phcoder' Serbinenko
2012-02-04 20:48 ` Richard Laager
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.