diff options
| author | Jim Meyering <jim@meyering.net> | 2005-06-16 21:39:10 +0000 |
|---|---|---|
| committer | Jim Meyering <jim@meyering.net> | 2005-06-16 21:39:10 +0000 |
| commit | 0919e29116ac69b5ef4a647c3f85d0f5ec5445bf (patch) | |
| tree | d1b25786653afb31f9d67affdd40de5e40b4a537 /src/fold.c | |
| parent | Don't embed `this'-style quotes in format strings. (diff) | |
| download | coreutils-0919e29116ac69b5ef4a647c3f85d0f5ec5445bf.tar.gz coreutils-0919e29116ac69b5ef4a647c3f85d0f5ec5445bf.zip | |
Don't embed `this'-style quotes in format strings.
Include "quote.h".
Rather than this: error (..., "...`%s'...", arg);
do this: error (..., "...%s...", quote (arg));
Diffstat (limited to 'src/fold.c')
| -rw-r--r-- | src/fold.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/fold.c b/src/fold.c index e98fa0f83..9a3e53837 100644 --- a/src/fold.c +++ b/src/fold.c @@ -25,6 +25,7 @@ #include "system.h" #include "error.h" +#include "quote.h" #include "xstrtol.h" #define TAB_WIDTH 8 @@ -287,7 +288,7 @@ main (int argc, char **argv) if (! (xstrtoul (optarg, NULL, 10, &tmp_ulong, "") == LONGINT_OK && 0 < tmp_ulong && tmp_ulong < SIZE_MAX - TAB_WIDTH)) error (EXIT_FAILURE, 0, - _("invalid number of columns: `%s'"), optarg); + _("invalid number of columns: %s"), quote (optarg)); width = tmp_ulong; } break; |
