summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2005-04-12 06:47:44 +0000
committerJim Meyering <jim@meyering.net>2005-04-12 06:47:44 +0000
commitaa3d627011002fd7c1638517b5ddc4cd252cb42a (patch)
tree60ff230b20546412946f272b3dc65091874962c4 /src
parent051001788817d76b7e6fe4f14e45c5779d454e07 (diff)
downloadcoreutils-aa3d627011002fd7c1638517b5ddc4cd252cb42a.tar.xz
(tsort): Use "%s" as the format string, rather than a diagnostic or a file name.
Diffstat (limited to 'src')
-rw-r--r--src/tsort.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tsort.c b/src/tsort.c
index d5209cf5a..11bd6ce76 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;
}