Fix pclose. master
authorNIIBE Yutaka <gniibe@fsij.org>
Tue, 17 Jan 2017 04:38:45 +0000 (13:38 +0900)
committerNIIBE Yutaka <gniibe@fsij.org>
Tue, 17 Jan 2017 04:38:45 +0000 (13:38 +0900)
* src/scd/scd.c (get_agent_socket_name): Use pclose.

Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
src/scd/scd.c

index 5d1b835..a53195c 100644 (file)
@@ -119,7 +119,7 @@ get_agent_socket_name (char **gpg_agent_sockname)
     }
 
   len = fread (result, 1, 256, input);
-  fclose (input);
+  pclose (input);
 
   if (len)
     {