From fd5193ac8c695701fe6fb48c271414347af8449e Mon Sep 17 00:00:00 2001 From: Marcus Brinkmann Date: Thu, 10 Jun 2010 15:26:03 +0000 Subject: 2010-06-10 Marcus Brinkmann * server.c (SERVER_STDIN, SERVER_STDOUT): New macros. (gpgsm_server): Use them with assuan_fdopen. --- common/estream.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'common/estream.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) { -- cgit v1.2.3