aboutsummaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
Diffstat (limited to 'common')
-rw-r--r--common/ChangeLog4
-rw-r--r--common/estream.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/common/ChangeLog b/common/ChangeLog
index 849d1def9..f46b4bb7d 100644
--- a/common/ChangeLog
+++ b/common/ChangeLog
@@ -1,3 +1,7 @@
+2010-06-10 Marcus Brinkmann <[email protected]>
+
+ * estream.c (_es_get_std_stream): Fix cut&paste bug.
+
2010-06-09 Werner Koch <[email protected]>
* exechelp-posix.c, exechelp-w32.c
diff --git a/common/estream.c b/common/estream.c
index 56e362d68..bf7955d06 100644
--- a/common/estream.c
+++ b/common/estream.c
@@ -2452,7 +2452,7 @@ _es_get_std_stream (int fd)
else if (fd == 1 && custom_std_fds_valid[1])
stream = do_fdopen (custom_std_fds[1], "a", 1, 1);
else if (custom_std_fds_valid[2])
- stream = do_fdopen (custom_std_fds[1], "a", 1, 1);
+ stream = do_fdopen (custom_std_fds[2], "a", 1, 1);
if (!stream)
{