summaryrefslogtreecommitdiff
path: root/src/fold.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/fold.c')
-rw-r--r--src/fold.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/fold.c b/src/fold.c
index e9bbd8eff..8cd0d6b11 100644
--- a/src/fold.c
+++ b/src/fold.c
@@ -23,6 +23,7 @@
#include <sys/types.h>
#include "system.h"
+#include "die.h"
#include "error.h"
#include "fadvise.h"
#include "xdectoint.h"
@@ -302,7 +303,7 @@ main (int argc, char **argv)
}
if (have_read_stdin && fclose (stdin) == EOF)
- error (EXIT_FAILURE, errno, "-");
+ die (EXIT_FAILURE, errno, "-");
return ok ? EXIT_SUCCESS : EXIT_FAILURE;
}