summaryrefslogtreecommitdiff
path: root/usr.bin/sendbug/sendbug.c
diff options
context:
space:
mode:
authorStuart Henderson <sthen@cvs.openbsd.org>2010-04-20 21:33:26 +0000
committerStuart Henderson <sthen@cvs.openbsd.org>2010-04-20 21:33:26 +0000
commit6c40265e96eb822f687f4db57376275fd8ea03b9 (patch)
treee0ea54ef2cfe1ea9c52b38a8e152090dba939b6c /usr.bin/sendbug/sendbug.c
parent840c97461c7cd2f70e039282b2cbdb08d9fb7a0c (diff)
Fix some pclose() calls, spotted by Peter Philipp. ok deraadt@
Diffstat (limited to 'usr.bin/sendbug/sendbug.c')
-rw-r--r--usr.bin/sendbug/sendbug.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/usr.bin/sendbug/sendbug.c b/usr.bin/sendbug/sendbug.c
index cabe2dd6c8a..f33ef90144a 100644
--- a/usr.bin/sendbug/sendbug.c
+++ b/usr.bin/sendbug/sendbug.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sendbug.c,v 1.65 2010/04/20 19:05:03 sthen Exp $ */
+/* $OpenBSD: sendbug.c,v 1.66 2010/04/20 21:33:25 sthen Exp $ */
/*
* Written by Ray Lai <ray@cyth.net>.
@@ -246,9 +246,8 @@ usbdevs(FILE *ofp)
if (fwrite(buf, 1, len, ofp) != len)
break;
}
- pclose(ofp);
+ pclose(ifp);
}
- pclose(ifp);
}
/*
@@ -621,9 +620,8 @@ hwdump(FILE *ofp)
if (fwrite(buf, 1, len, ofp) != len)
break;
}
- pclose(ofp);
+ pclose(ifp);
}
- pclose(ifp);
free(cmd);
free(acpidir);
}