summaryrefslogtreecommitdiff
path: root/usr.bin/sendbug
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/sendbug')
-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);
}