From c95fdb837288fd304217de84b319cabb8dffadbb Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Thu, 16 Jun 2005 21:44:25 +0000 Subject: 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/factor.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/factor.c') diff --git a/src/factor.c b/src/factor.c index 06987c814..3066d65e6 100644 --- a/src/factor.c +++ b/src/factor.c @@ -30,6 +30,7 @@ #include "error.h" #include "inttostr.h" #include "long-options.h" +#include "quote.h" #include "readtokens.h" #include "xstrtol.h" @@ -153,9 +154,9 @@ print_factors (const char *s) if ((err = xstrtoumax (s, NULL, 10, &n, "")) != LONGINT_OK) { if (err == LONGINT_OVERFLOW) - error (0, 0, _("`%s' is too large"), s); + error (0, 0, _("%s is too large"), quote (s)); else - error (0, 0, _("`%s' is not a valid positive integer"), s); + error (0, 0, _("%s is not a valid positive integer"), quote (s)); return false; } n_factors = factor (n, MAX_N_FACTORS, factors); -- cgit v1.2.3