summaryrefslogtreecommitdiff
path: root/usr.bin/aucat/aucat.c
diff options
context:
space:
mode:
authorAlexandre Ratchov <ratchov@cvs.openbsd.org>2009-08-19 18:29:35 +0000
committerAlexandre Ratchov <ratchov@cvs.openbsd.org>2009-08-19 18:29:35 +0000
commit895a0f8a6188fa9649608c93852b14fa80245d86 (patch)
treebb536baba9c35aa6bbb048fb70acab5cba3f1254 /usr.bin/aucat/aucat.c
parent79f1dfd34233681fd6b75f788a42fa4caeaa2bb1 (diff)
don't try to process -o arguments using the input file list, fixes
midicat crashing sometimes when -o is used
Diffstat (limited to 'usr.bin/aucat/aucat.c')
-rw-r--r--usr.bin/aucat/aucat.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/aucat/aucat.c b/usr.bin/aucat/aucat.c
index 699bcd10989..01ee6f3c9e7 100644
--- a/usr.bin/aucat/aucat.c
+++ b/usr.bin/aucat/aucat.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: aucat.c,v 1.65 2009/08/19 05:54:15 ratchov Exp $ */
+/* $OpenBSD: aucat.c,v 1.66 2009/08/19 18:29:34 ratchov Exp $ */
/*
* Copyright (c) 2008 Alexandre Ratchov <alex@caoua.org>
*
@@ -795,8 +795,8 @@ midicat_main(int argc, char **argv)
free(fa);
}
while (!SLIST_EMPTY(&ofiles)) {
- fa = SLIST_FIRST(&ifiles);
- SLIST_REMOVE_HEAD(&ifiles, entry);
+ fa = SLIST_FIRST(&ofiles);
+ SLIST_REMOVE_HEAD(&ofiles, entry);
if (strcmp(fa->name, "-") == 0) {
fd = STDOUT_FILENO;
if (fcntl(fd, F_SETFL, O_NONBLOCK) < 0)