summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/sort.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sort.c b/src/sort.c
index 224e7d34b..913019053 100644
--- a/src/sort.c
+++ b/src/sort.c
@@ -2054,7 +2054,7 @@ but lacks following character offset"));
struct stat instat;
if ((strcmp (files[i], "-")
? stat (files[i], &instat)
- : fstat (fileno (stdin), &instat)) != 0)
+ : fstat (STDIN_FILENO, &instat)) != 0)
{
error (0, errno, "%s", files[i]);
cleanup ();