aboutsummaryrefslogtreecommitdiff
path: root/coreutils
diff options
context:
space:
mode:
Diffstat (limited to 'coreutils')
-rw-r--r--coreutils/dos2unix.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/coreutils/dos2unix.c b/coreutils/dos2unix.c
index 309cbc3b8..baf879e54 100644
--- a/coreutils/dos2unix.c
+++ b/coreutils/dos2unix.c
@@ -42,10 +42,10 @@ static void convert(char *fn, int conv_type)
42 i = mkstemp(temp_fn); 42 i = mkstemp(temp_fn);
43 if (i == -1 43 if (i == -1
44 || fchmod(i, st.st_mode) == -1 44 || fchmod(i, st.st_mode) == -1
45 || !(out = fdopen(i, "w+"))
46 ) { 45 ) {
47 bb_simple_perror_msg_and_die(temp_fn); 46 bb_simple_perror_msg_and_die(temp_fn);
48 } 47 }
48 out = xfdopen_for_write(i);
49 } 49 }
50 50
51 while ((i = fgetc(in)) != EOF) { 51 while ((i = fgetc(in)) != EOF) {