Imported Upstream version 2.1.8
[platform/upstream/gpg2.git] / g10 / decrypt.c
index fe6fd63..068b64a 100644 (file)
@@ -120,7 +120,7 @@ decrypt_message_fd (ctrl_t ctrl, int input_fd, int output_fd)
   pfx = new_progress_context ();
 
   /* Open the message file.  */
-  fp = iobuf_open_fd_or_name (input_fd, NULL, "rb");
+  fp = iobuf_fdopen_nc (FD2INT(input_fd), "rb");
   if (fp && is_secured_file (iobuf_get_fd (fp)))
     {
       iobuf_close (fp);