]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(tsort): Use "%s" as the format string, rather than a diagnostic or a file name.
authorJim Meyering <jim@meyering.net>
Tue, 12 Apr 2005 06:47:44 +0000 (06:47 +0000)
committerJim Meyering <jim@meyering.net>
Tue, 12 Apr 2005 06:47:44 +0000 (06:47 +0000)
src/tsort.c

index d5209cf5adac1eac8ae15c585309a37671436d58..11bd6ce7692d274c9945e7e504d61fbdf43681ee 100644 (file)
@@ -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;
 }