mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2026-11-19 03:33:43 +03:00
Don't embed `this'-style quotes in format strings.
Include "quote.h". Rather than this: error (..., "...`%s'...", arg); do this: error (..., "...%s...", quote (arg));
This commit is contained in:
1 parent
a38ee1953f
commit
0919e29116
1 file changed
+2
-1
+2
-1
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user