File jack-fix-pclose.diff of Package jack

---
 libjack/client.c |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

--- a/libjack/client.c
+++ b/libjack/client.c
@@ -161,7 +161,7 @@
 	}
 
 	if (fgets (buf, sizeof (buf), in) == NULL) {
-		fclose (in);
+		pclose (in);
 		free (pathcopy);
 		return -1;
 	}
@@ -170,7 +170,7 @@
 
 	if (buf[len-1] != '\n') {
 		/* didn't get a whole line */
-		fclose (in);
+		pclose (in);
 		free (pathcopy);
 		return -1;
 	}
@@ -179,7 +179,7 @@
 	memcpy (jack_tmpdir, buf, len-1);
 	jack_tmpdir[len-1] = '\0';
 	
-	fclose (in);
+	pclose (in);
 	free (pathcopy);
 	return 0;
 }
openSUSE Build Service is sponsored by