From: Jim Meyering Date: Tue, 12 Apr 2005 06:47:44 +0000 (+0000) Subject: (tsort): Use "%s" as the format string, rather than a diagnostic or a file name. X-Git-Tag: CPPI-1_12~1002 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=aa3d627011002fd7c1638517b5ddc4cd252cb42a;p=thirdparty%2Fcoreutils.git (tsort): Use "%s" as the format string, rather than a diagnostic or a file name. --- diff --git a/src/tsort.c b/src/tsort.c index d5209cf5ad..11bd6ce769 100644 --- a/src/tsort.c +++ b/src/tsort.c @@ -523,8 +523,8 @@ tsort (const char *file) } if (fclose (stdin) != 0) - error (EXIT_FAILURE, errno, - is_stdin ? _("standard input") : file); + error (EXIT_FAILURE, errno, "%s", + is_stdin ? _("standard input") : quote (file)); return ok; }