From 0cda9b5eb8a8b9e297a95817f02bda12c21de94e Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Thu, 16 Jun 2005 21:40:43 +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/cat.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/cat.c b/src/cat.c index aaae901..8f1b2bf 100644 --- a/src/cat.c +++ b/src/cat.c @@ -34,6 +34,7 @@ #include "error.h" #include "full-write.h" #include "getpagesize.h" +#include "quote.h" #include "safe-read.h" /* The official name of this program (e.g., no `g' prefix). */ @@ -313,7 +314,7 @@ cat ( use_fionread = false; else { - error (0, errno, _("cannot do ioctl on `%s'"), infile); + error (0, errno, _("cannot do ioctl on %s"), quote (infile)); newlines2 = newlines; return false; } -- 2.7.4