summaryrefslogtreecommitdiff
path: root/src/tsort.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/tsort.c')
-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;
}