From f07a234d1d0fad264b2e3653223740a25fc964f5 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Thu, 16 Jun 2005 21:36:48 +0000 Subject: [PATCH] Don't embed `this'-style quotes in format strings. Include "quote.h". Rather than this: error (..., "...`%s'...", arg); do this: error (..., "...%s...", quote (arg)); --- src/nice.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/nice.c b/src/nice.c index f5e81de3d5..b008b536f0 100644 --- a/src/nice.c +++ b/src/nice.c @@ -35,6 +35,7 @@ #include "error.h" #include "long-options.h" +#include "quote.h" #include "xstrtol.h" /* The official name of this program (e.g., no `g' prefix). */ @@ -154,7 +155,8 @@ main (int argc, char **argv) enum { MIN_ADJUSTMENT = 1 - 2 * NZERO, MAX_ADJUSTMENT = 2 * NZERO - 1 }; long int tmp; if (LONGINT_OVERFLOW < xstrtol (adjustment_given, NULL, 10, &tmp, "")) - error (EXIT_FAIL, 0, _("invalid adjustment `%s'"), adjustment_given); + error (EXIT_FAIL, 0, _("invalid adjustment %s"), + quote (adjustment_given)); adjustment = MAX (MIN_ADJUSTMENT, MIN (tmp, MAX_ADJUSTMENT)); } -- 2.47.3