summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2005-06-16 21:38:27 +0000
committerJim Meyering <jim@meyering.net>2005-06-16 21:38:27 +0000
commita38ee1953f5aabd1bb93fd8479a4e7f191855c31 (patch)
treead9e6c394ba788765e436f712795e515af14631e
parentf696c57a8ee46a7df82f860275b88fb329740e69 (diff)
downloadcoreutils-a38ee1953f5aabd1bb93fd8479a4e7f191855c31.tar.xz
Don't embed `this'-style quotes in format strings.
Include "quote.h". Rather than this: error (..., "...`%s'...", arg); do this: error (..., "...%s...", quote (arg));
-rw-r--r--src/printf.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/printf.c b/src/printf.c
index df636bfce..746bcb268 100644
--- a/src/printf.c
+++ b/src/printf.c
@@ -53,8 +53,9 @@
#include "system.h"
#include "c-strtod.h"
-#include "long-options.h"
#include "error.h"
+#include "long-options.h"
+#include "quote.h"
#include "unicodeio.h"
#if ! (HAVE_DECL_STRTOIMAX || defined strtoimax)
@@ -683,8 +684,8 @@ main (int argc, char **argv)
if (argc > 0)
error (0, 0,
- _("warning: ignoring excess arguments, starting with `%s'"),
- argv[0]);
+ _("warning: ignoring excess arguments, starting with %s"),
+ quote (argv[0]));
exit (exit_status);
}