summaryrefslogtreecommitdiff
path: root/src/imlib.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/imlib.c')
-rw-r--r--src/imlib.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/imlib.c b/src/imlib.c
index 9ee4c08..fc81bdd 100644
--- a/src/imlib.c
+++ b/src/imlib.c
@@ -637,9 +637,7 @@ static char *feh_dcraw_load_image(char *filename)
close(fd);
return NULL;
} else if (childpid == 0) {
-
- close(1);
- dup(fd);
+ dup2(fd, STDOUT_FILENO);
close(fd);
alarm(opt.conversion_timeout);